Changeset 8315


Ignore:
Timestamp:
May 2, 2009, 1:53:49 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) swap statusbar ul & dl as suggested by Rolcol

File:
1 edited

Legend:

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

    r8314 r8315  
    8787    GtkWidget *           dl_hbox;
    8888    GtkWidget *           ul_lb;
    89     GtkWidget *           ul_image;
    9089    GtkWidget *           dl_lb;
    91     GtkWidget *           dl_image;
    9290    GtkWidget *           stats_lb;
    9391    GtkWidget *           gutter_lb;
     
    925923        gtk_box_pack_start( GTK_BOX( h ), w, 1, 1, GUI_PAD_BIG );
    926924
     925        hbox = p->ul_hbox = gtk_hbox_new( FALSE, GUI_PAD_SMALL );
     926            w = gtk_alignment_new( 0.0f, 0.0f, 0.0f, 0.0f );
     927            gtk_widget_set_size_request( w, GUI_PAD, 0u );
     928            gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
     929            w = gtk_image_new_from_stock( GTK_STOCK_GO_UP, GTK_ICON_SIZE_MENU );
     930            gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
     931            w = p->ul_lb = gtk_label_new( NULL );
     932            gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
     933        gtk_box_pack_end( GTK_BOX( h ), hbox, FALSE, FALSE, 0 );
     934
    927935        hbox = p->dl_hbox = gtk_hbox_new( FALSE, GUI_PAD_SMALL );
    928936            w = gtk_alignment_new( 0.0f, 0.0f, 0.0f, 0.0f );
    929937            gtk_widget_set_size_request( w, GUI_PAD, 0u );
    930938            gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
    931             w = p->dl_image = gtk_image_new_from_stock( GTK_STOCK_GO_DOWN, GTK_ICON_SIZE_MENU );
     939            w = gtk_image_new_from_stock( GTK_STOCK_GO_DOWN, GTK_ICON_SIZE_MENU );
    932940            gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
    933941            w = p->dl_lb = gtk_label_new( NULL );
    934             gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
    935         gtk_box_pack_end( GTK_BOX( h ), hbox, FALSE, FALSE, 0 );
    936 
    937         hbox = p->ul_hbox = gtk_hbox_new( FALSE, GUI_PAD_SMALL );
    938             w = gtk_alignment_new( 0.0f, 0.0f, 0.0f, 0.0f );
    939             gtk_widget_set_size_request( w, GUI_PAD, 0u );
    940             gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
    941             w = p->ul_image = gtk_image_new_from_stock( GTK_STOCK_GO_UP, GTK_ICON_SIZE_MENU );
    942             gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
    943             w = p->ul_lb = gtk_label_new( NULL );
    944942            gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
    945943        gtk_box_pack_end( GTK_BOX( h ), hbox, FALSE, FALSE, 0 );
Note: See TracChangeset for help on using the changeset viewer.