don't leak/fail to install zoom-out button when chat enabled

This commit is contained in:
Andy2 2011-12-01 21:09:37 -08:00
parent 3e21b7845a
commit fc00102384

View file

@ -1896,12 +1896,13 @@ makeVerticalBar( GtkAppGlobals* globals, GtkWidget* XP_UNUSED(window) )
gtk_box_pack_start( GTK_BOX(vbox), button, FALSE, TRUE, 0 ); gtk_box_pack_start( GTK_BOX(vbox), button, FALSE, TRUE, 0 );
button = makeShowButtonFromBitmap( globals, "../done.xpm", "-", button = makeShowButtonFromBitmap( globals, "../done.xpm", "-",
G_CALLBACK(handle_zoomout_button) ); G_CALLBACK(handle_zoomout_button) );
gtk_box_pack_start( GTK_BOX(vbox), button, FALSE, TRUE, 0 );
#ifdef XWFEATURE_CHAT #ifdef XWFEATURE_CHAT
button = makeShowButtonFromBitmap( globals, "", "chat", button = makeShowButtonFromBitmap( globals, "", "chat",
G_CALLBACK(handle_chat_button) ); G_CALLBACK(handle_chat_button) );
globals->chat_button = button; globals->chat_button = button;
#endif
gtk_box_pack_start( GTK_BOX(vbox), button, FALSE, TRUE, 0 ); gtk_box_pack_start( GTK_BOX(vbox), button, FALSE, TRUE, 0 );
#endif
gtk_widget_show( vbox ); gtk_widget_show( vbox );
return vbox; return vbox;