Changeset 13388 for trunk/gtk/tr-prefs.c


Ignore:
Timestamp:
Jul 14, 2012, 7:26:55 PM (10 years ago)
Author:
jordan
Message:

(trunk gtk) #4970 remove deprecated GTK+ API calls, raise GTK+ dependency to 3.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-prefs.c

    r13192 r13388  
    304304    hig_workarea_add_row_w( t, &row, l, w, NULL );
    305305
    306     hig_workarea_finish( t, &row );
    307306    return t;
    308307}
     
    361360    hig_workarea_add_row_w( t, &row, w, w2, NULL );
    362361
    363     hig_workarea_finish( t, &row );
    364362    return t;
    365363}
     
    403401    hig_workarea_add_wide_control( t, &row, w );
    404402
    405     hig_workarea_finish( t, &row );
    406403    return t;
    407404}
     
    550547    updateBlocklistText( w, TR_CORE( core ) );
    551548    data->label = w;
    552     h = gtr_hbox_new( FALSE, GUI_PAD_BIG );
     549    h = gtk_box_new( GTK_ORIENTATION_HORIZONTAL, GUI_PAD_BIG );
    553550    gtk_box_pack_start( GTK_BOX( h ), w, TRUE, TRUE, 0 );
    554551    b = data->updateBlocklistButton = gtk_button_new_with_mnemonic( _( "_Update" ) );
     
    592589    hig_workarea_add_wide_control( t, &row, w );
    593590
    594     hig_workarea_finish( t, &row );
    595591    g_object_weak_ref( G_OBJECT( t ), privacyPageDestroyed, data );
    596592    return t;
     
    812808    page->rpc_tb = GTK_TOGGLE_BUTTON( w );
    813809    g_signal_connect( w, "clicked", G_CALLBACK( onRPCToggled ), page );
    814     h = gtr_hbox_new( FALSE, GUI_PAD_BIG );
     810    h = gtk_box_new( GTK_ORIENTATION_HORIZONTAL, GUI_PAD_BIG );
    815811    gtk_box_pack_start( GTK_BOX( h ), w, TRUE, TRUE, 0 );
    816812    w = gtk_button_new_with_mnemonic( _( "_Open web client" ) );
     
    903899        page->whitelist_widgets = g_slist_prepend( page->whitelist_widgets, w );
    904900
    905         h = gtr_hbox_new( TRUE, GUI_PAD );
     901        h = gtk_box_new( GTK_ORIENTATION_HORIZONTAL, GUI_PAD );
    906902        w = gtk_button_new_from_stock( GTK_STOCK_REMOVE );
    907903        g_signal_connect( w, "clicked", G_CALLBACK(
     
    914910        g_signal_connect( w, "clicked", G_CALLBACK( onAddWhitelistClicked ), page );
    915911        gtk_box_pack_start( GTK_BOX( h ), w, TRUE, TRUE, 0 );
    916         w = gtr_hbox_new( FALSE, 0 );
     912        w = gtk_box_new( GTK_ORIENTATION_HORIZONTAL, 0 );
    917913        gtk_box_pack_start( GTK_BOX( w ), gtk_alignment_new( 0, 0, 0, 0 ),
    918914                            TRUE, TRUE, 0 );
     
    922918
    923919    refreshRPCSensitivity( page );
    924     hig_workarea_finish( t, &row );
    925920    return t;
    926921}
     
    10721067
    10731068    hig_workarea_add_section_divider( t, &row );
    1074     h = gtr_hbox_new( FALSE, GUI_PAD );
     1069    h = gtk_box_new( GTK_ORIENTATION_HORIZONTAL, GUI_PAD );
    10751070    w = gtk_image_new_from_stock( "alt-speed-on", -1 );
    10761071    gtk_box_pack_start( GTK_BOX( h ), w, FALSE, FALSE, 0 );
     
    10981093
    10991094        s = _( "_Scheduled times:" );
    1100         h = gtr_hbox_new( FALSE, 0 );
     1095        h = gtk_box_new( GTK_ORIENTATION_HORIZONTAL, 0 );
    11011096        w2 = new_time_combo( core, TR_PREFS_KEY_ALT_SPEED_TIME_BEGIN );
    11021097        page->sched_widgets = g_slist_prepend( page->sched_widgets, w2 );
     
    11191114        page->sched_widgets = g_slist_prepend( page->sched_widgets, w );
    11201115
    1121     hig_workarea_finish( t, &row );
    11221116    g_object_set_data_full( G_OBJECT( t ), "page", page, bandwidthPageFree );
    11231117
     
    12121206    hig_workarea_add_row( t, &row, s, w, NULL );
    12131207
    1214     h = gtr_hbox_new( FALSE, GUI_PAD_BIG );
     1208    h = gtk_box_new( GTK_ORIENTATION_HORIZONTAL, GUI_PAD_BIG );
    12151209    l = data->portLabel = gtk_label_new( _( "Status unknown" ) );
    12161210    gtk_misc_set_alignment( GTK_MISC( l ), 0.0f, 0.5f );
     
    12501244#endif
    12511245
    1252     hig_workarea_finish( t, &row );
    12531246    return t;
    12541247}
Note: See TracChangeset for help on using the changeset viewer.