GNOME Bugzilla – Bug 145596
Miscellaneous clean-ups [patches]
Last modified: 2004-12-22 21:47:04 UTC
Eliminate some code bloat: --- terminal-window.c-unpatched 2004-07-06 22:25:43.000000000 -0400 +++ terminal-window.c 2004-07-06 23:12:09.000000000 -0400 @@ -1401,15 +1532,9 @@ { /* Match size to current active screen */ int current_width, current_height; - GtkWidget *current_widget; - if (window->priv->active_term) - current_widget = terminal_screen_get_widget (window->priv->active_term); - else - current_widget = NULL; - - if (current_widget) - terminal_widget_get_size (current_widget, ¤t_width, ¤t_height); + terminal_widget_get_size (terminal_screen_get_widget(window->priv->active_term), + ¤t_width, ¤t_height); else { current_width = 80; Another clean-up: --- terminal-window.c-unpatched 2004-07-07 20:56:07.000000000 -0400 +++ terminal-window.c 2004-07-07 20:56:41.000000000 -0400 @@ -913,8 +913,6 @@ mi = append_stock_menuitem (menu, GTK_STOCK_ZOOM_100, ACCEL_PATH_ZOOM_NORMAL, G_CALLBACK (zoom_normal_callback), window); - /* the default label for GTK_STOCK_ZOOM_100 does not follow the HIG... */ - set_menuitem_text (mi, _("_Normal Size"), FALSE); window->priv->zoom_normal_menuitem = mi; menuitem_icon_visibility (window->priv->zoom_normal_menuitem, menus_have_icons); This no longer holds in 2.4.1 (and possibly before), GTK has a perfectly good label there.
Commited the first one; the second part was alredy there.