Changeset 8402


Ignore:
Timestamp:
May 14, 2009, 6:34:44 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) #1451: make it clearer that the statusbar's ratio mode button is a button

File:
1 edited

Legend:

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

    r8315 r8402  
    947947            gtk_widget_set_size_request( w, GUI_PAD, 0u );
    948948            gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
    949             w = gtk_image_new_from_stock( GTK_STOCK_REFRESH, GTK_ICON_SIZE_MENU );
    950             c = gtk_event_box_new( );
    951             gtk_container_add( GTK_CONTAINER( c ), w );
    952             w = c;
    953             g_signal_connect( w, "button-release-event", G_CALLBACK( onYinYangReleased ), p );
     949            w = gtk_button_new( );
     950            gtk_container_add( GTK_CONTAINER( w ), gtk_image_new_from_stock( GTK_STOCK_REFRESH, GTK_ICON_SIZE_MENU ) );
     951            gtk_button_set_relief( GTK_BUTTON( w ), GTK_RELIEF_NONE );
     952            g_signal_connect( w, "clicked", G_CALLBACK( onYinYangReleased ), p );
    954953            gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
    955954            w = p->stats_lb = gtk_label_new( NULL );
Note: See TracChangeset for help on using the changeset viewer.