Changeset 3382 for trunk/jons-gtk2-gui

Show
Ignore:
Timestamp:
03/20/03 01:38:52 (6 years ago)
Author:
bostjanlah
Message:

Add a new utility call for creating button boxes for a consistent look

Location:
trunk/jons-gtk2-gui/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/jons-gtk2-gui/src/utilities.cpp

    r3374 r3382  
    104104    return std::string(); 
    105105} 
     106 
     107GtkWidget * 
     108hbutton_box_new(int spacing, GtkButtonBoxStyle layout_style) 
     109{ 
     110    GtkWidget *h_box = gtk_hbutton_box_new(); 
     111    gtk_button_box_set_layout(GTK_BUTTON_BOX(h_box), layout_style); 
     112    gtk_box_set_spacing(GTK_BOX(h_box), spacing); 
     113   
     114  return h_box; 
     115} 
  • trunk/jons-gtk2-gui/src/utilities.h

    r3374 r3382  
    1919status_change(GtkWidget *statusbar, const char *st_name, const char *newstatus); 
    2020 
     21GtkWidget * 
     22hbutton_box_new(int spacing = 5,  
     23    GtkButtonBoxStyle layout_style = GTK_BUTTONBOX_END); 
    2124#endif