Changeset 3384 for trunk/jons-gtk2-gui

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

Use buttonbox for buttons
Use gtk_window_present instead of gdk_window_raise

Files:
1 modified

Legend:

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

    r3353 r3384  
    7272 
    7373    if(c != 0) 
    74         gdk_window_raise(c->window->window); 
     74        gtk_window_present(GTK_WINDOW(c->window)); 
    7575    else 
    7676    { 
     
    192192    /* Send the message urgently */ 
    193193    c->send_urgent = gtk_check_button_new_with_mnemonic("U_rgent"); 
    194     gtk_box_pack_start(GTK_BOX(options_box), c->send_urgent, FALSE, FALSE, 0); 
     194    gtk_box_pack_start(GTK_BOX(options_box), c->send_urgent, FALSE, FALSE, 5); 
    195195 
    196196    /* Send the message to contact list */ 
     
    208208     
    209209    /* Make new buttons with labels */ 
     210  GtkWidget *hbbox = hbutton_box_new(); 
    210211    c->send = gtk_button_new_with_mnemonic("_Send"); 
    211212    c->close_or_cancel = gtk_button_new_from_stock(GTK_STOCK_CANCEL); 
     213  gtk_container_add(GTK_CONTAINER(hbbox), c->send); 
     214  gtk_container_add(GTK_CONTAINER(hbbox), c->close_or_cancel); 
    212215 
    213216    /* Get the signals connected for the buttons */ 
     
    218221     
    219222    gtk_box_pack_start(GTK_BOX(button_box), c->etag->statusbar, TRUE, TRUE, 5); 
    220     GtkWidget *bbox = gtk_hbox_new(TRUE, 0); 
    221     gtk_box_pack_start(GTK_BOX(bbox), c->close_or_cancel, TRUE, TRUE, 5); 
    222     gtk_box_pack_start(GTK_BOX(bbox), c->send, TRUE, TRUE, 5); 
    223     gtk_box_pack_end(GTK_BOX(button_box), bbox, FALSE, FALSE, 0); 
     223    gtk_box_pack_end(GTK_BOX(button_box), hbbox, FALSE, FALSE, 0); 
    224224 
    225225    /* Take care of the rest of the widgets */