~ubuntu-branches/ubuntu/oneiric/midori/oneiric-updates

« back to all changes in this revision

Viewing changes to katze/katze-preferences.c

  • Committer: Bazaar Package Importer
  • Author(s): Micah Gersten
  • Date: 2011-05-18 21:07:34 UTC
  • mfrom: (1.1.16 upstream) (3.3.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110518210734-232wzq1tc88gtz2p
Tags: 0.3.6-1ubuntu1
* Merge from debian unstable. (LP: #784944) Remaining changes:
  - debian/control:
    + Change build-depends from libwebkit-dev to libwebkitgtk-dev
  - debian/rules:
    + Change package query from libwebkit-dev to libwebkitgtk-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
 * Adds a new category with the specified label to the dialog.
250
250
 *
251
251
 * Since: 0.2.1
 
252
 *
 
253
 * Since 0.3.4 a #GtkBox is returned that can be packed into.
252
254
 **/
253
 
void
 
255
GtkWidget*
254
256
katze_preferences_add_category (KatzePreferences* preferences,
255
257
                                const gchar*      label,
256
258
                                const gchar*      icon)
257
259
{
258
 
    KatzePreferencesPrivate* priv = preferences->priv;
 
260
    KatzePreferencesPrivate* priv;
 
261
 
 
262
    g_return_val_if_fail (KATZE_IS_PREFERENCES (preferences), NULL);
 
263
    g_return_val_if_fail (label != NULL, NULL);
 
264
    g_return_val_if_fail (icon != NULL, NULL);
 
265
 
 
266
    priv = preferences->priv;
259
267
 
260
268
    #if HAVE_HILDON
261
269
    GtkWidget* widget;
300
308
        g_object_set_data (G_OBJECT (priv->toolbutton), "notebook", priv->notebook);
301
309
    #endif
302
310
    #endif
 
311
 
 
312
    return priv->page;
303
313
}
304
314
 
305
315
#if !HAVE_HILDON
325
335
/**
326
336
 * katze_preferences_add_group:
327
337
 * @preferences: a #KatzePreferences instance
328
 
 * @label: a group label
 
338
 * @label: a group label, or %NULL
329
339
 *
330
340
 * Adds a new group with the specified label to the dialog.
331
341
 *
332
342
 * Since: 0.2.1
 
343
 *
 
344
 * Since 0.3.4 you can pass %NULL to hide the label.
333
345
 **/
334
346
void
335
347
katze_preferences_add_group (KatzePreferences* preferences,
336
348
                             const gchar*      label)
337
349
{
338
350
    #if !HAVE_HILDON
339
 
    KatzePreferencesPrivate* priv = preferences->priv;
340
 
 
 
351
    KatzePreferencesPrivate* priv;
 
352
 
 
353
    g_return_if_fail (KATZE_IS_PREFERENCES (preferences));
 
354
 
 
355
    priv = preferences->priv;
341
356
    priv->sizegroup2 = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
342
 
    priv->frame = katze_hig_frame_new (label);
 
357
    priv->frame = label ? katze_hig_frame_new (label) :
 
358
        g_object_new (GTK_TYPE_FRAME, "shadow-type", GTK_SHADOW_NONE, NULL);
343
359
    gtk_container_set_border_width (GTK_CONTAINER (priv->frame), 4);
344
360
    gtk_box_pack_start (GTK_BOX (priv->page), priv->frame, FALSE, FALSE, 0);
345
361
    priv->box = gtk_vbox_new (FALSE, 4);