X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=cut-n-paste%2Fzoom-control%2Fephy-zoom-action.c;h=97e7167623e3d015164ddd5ccd163a691f826254;hb=5a058f12f1606d6d87c9ed592df93b33235d3766;hp=3582feebfe794ba5049c374418752dad07d0445f;hpb=606f66cbbca54996a165121743cda6a993762c47;p=evince.git diff --git a/cut-n-paste/zoom-control/ephy-zoom-action.c b/cut-n-paste/zoom-control/ephy-zoom-action.c index 3582feeb..97e71676 100644 --- a/cut-n-paste/zoom-control/ephy-zoom-action.c +++ b/cut-n-paste/zoom-control/ephy-zoom-action.c @@ -29,11 +29,7 @@ #include #include -#include -#include -#include -#include -#include +#include #define EPHY_ZOOM_ACTION_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_ZOOM_ACTION, EphyZoomActionPrivate)) @@ -69,7 +65,7 @@ ephy_zoom_action_get_type (void) if (G_UNLIKELY (type == 0)) { - static const GTypeInfo our_info = + const GTypeInfo our_info = { sizeof (EphyZoomActionClass), NULL, /* base_init */ @@ -158,19 +154,19 @@ create_menu_item (GtkAction *action) else { menu_item = gtk_radio_menu_item_new_with_label (group, - zoom_levels[i].name); + _(zoom_levels[i].name)); group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_item)); - } - gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item), - p->zoom == zoom_levels[i].level); - - gtk_widget_show (menu_item); + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item), + p->zoom == zoom_levels[i].level); + + g_object_set_data (G_OBJECT (menu_item), "zoom-level", GINT_TO_POINTER (i)); + g_signal_connect_object (G_OBJECT (menu_item), "activate", + G_CALLBACK (proxy_menu_activate_cb), action, 0); + } + + gtk_widget_show (menu_item); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item); - - g_object_set_data (G_OBJECT (menu_item), "zoom-level", GINT_TO_POINTER (i)); - g_signal_connect_object (G_OBJECT (menu_item), "activate", - G_CALLBACK (proxy_menu_activate_cb), action, 0); } gtk_widget_show (menu);