Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 4931:d80bc307e2c8
[gaim-migrate @ 5265]
I never liked that thing.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 31 Mar 2003 23:15:25 +0000 |
parents | 3c649fe22e2c |
children | 4d50e125b0fa |
comparison
equal
deleted
inserted
replaced
4930:d090282c42f7 | 4931:d80bc307e2c8 |
---|---|
2529 | 2529 |
2530 static GtkWidget * | 2530 static GtkWidget * |
2531 setup_menubar(struct gaim_window *win) | 2531 setup_menubar(struct gaim_window *win) |
2532 { | 2532 { |
2533 struct gaim_gtk_window *gtkwin; | 2533 struct gaim_gtk_window *gtkwin; |
2534 GtkWidget *hb; | |
2535 | |
2536 gtkwin = GAIM_GTK_WINDOW(win); | 2534 gtkwin = GAIM_GTK_WINDOW(win); |
2537 | |
2538 /* Create the handle box. */ | |
2539 hb = gtk_handle_box_new(); | |
2540 | 2535 |
2541 gtkwin->menu.item_factory = gtk_item_factory_new(GTK_TYPE_MENU_BAR, | 2536 gtkwin->menu.item_factory = gtk_item_factory_new(GTK_TYPE_MENU_BAR, |
2542 "<main>", NULL); | 2537 "<main>", NULL); |
2543 | 2538 |
2544 gtk_item_factory_set_translate_func (gtkwin->menu.item_factory, | 2539 gtk_item_factory_set_translate_func (gtkwin->menu.item_factory, |
2561 gtkwin->menu.sounds = gtk_item_factory_get_widget(gtkwin->menu.item_factory, | 2556 gtkwin->menu.sounds = gtk_item_factory_get_widget(gtkwin->menu.item_factory, |
2562 N_("/Options/Enable Sounds")); | 2557 N_("/Options/Enable Sounds")); |
2563 | 2558 |
2564 generate_send_as_items(win, NULL); | 2559 generate_send_as_items(win, NULL); |
2565 | 2560 |
2566 gtk_container_add(GTK_CONTAINER(hb), gtkwin->menu.menubar); | |
2567 | |
2568 gtk_widget_show(gtkwin->menu.menubar); | 2561 gtk_widget_show(gtkwin->menu.menubar); |
2569 gtk_widget_show(hb); | 2562 |
2570 | 2563 return gtkwin->menu.menubar; |
2571 return hb; | |
2572 } | 2564 } |
2573 | 2565 |
2574 static void | 2566 static void |
2575 setup_im_buttons(struct gaim_conversation *conv, GtkWidget *parent) | 2567 setup_im_buttons(struct gaim_conversation *conv, GtkWidget *parent) |
2576 { | 2568 { |