]> www.fi.muni.cz Git - evince.git/blobdiff - cut-n-paste/zoom-control/ephy-zoom-control.c
explicitly check for libxml2. Fixes #388795
[evince.git] / cut-n-paste / zoom-control / ephy-zoom-control.c
index d3b7e572d130c1abda8afd8e7041be9a560af9ad..79076abe84229d3d2ae50988048fb0fecbb98f2a 100644 (file)
@@ -73,7 +73,7 @@ ephy_zoom_control_get_type (void)
 
        if (G_UNLIKELY (type == 0))
        {
-               static const GTypeInfo our_info =
+               const GTypeInfo our_info =
                        {
                                sizeof (EphyZoomControlClass),
                                NULL, /* base_init */
@@ -152,10 +152,16 @@ ephy_zoom_control_init (EphyZoomControl *control)
        for (i = 0; i < n_zoom_levels; i++)
        {
                gtk_list_store_append (store, &iter);
-               gtk_list_store_set    (store, &iter,
-                                      COL_TEXT, zoom_levels[i].name,
-                                      COL_IS_SEP, zoom_levels[i].name == NULL,
-                                      -1);
+
+               if (zoom_levels[i].name != NULL) {
+                       gtk_list_store_set (store, &iter,
+                                           COL_TEXT, _(zoom_levels[i].name),
+                                           -1);
+               } else {
+                       gtk_list_store_set (store, &iter,
+                                           COL_IS_SEP, zoom_levels[i].name == NULL,
+                                           -1);
+               }
        }
 
        p->combo = GTK_COMBO_BOX (gtk_combo_box_new_with_model (GTK_TREE_MODEL (store)));