[gtk+] Some more interning



commit a8531605db9c0564ff83fd869357ad5d910fb5b5
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Nov 18 08:18:11 2017 -0500

    Some more interning
    
    This avoids more strdups at startup.

 gtk/gtkcalendar.c           |    6 +++---
 gtk/gtkcellareacontext.c    |   24 ++++++++----------------
 gtk/gtkcolorchooserwidget.c |    4 ++--
 gtk/gtkcolorplane.c         |    7 ++++---
 gtk/gtkcssiconthemevalue.c  |    3 ++-
 gtk/gtkcssselector.c        |    3 +--
 gtk/gtkcssstaticstyle.c     |    3 ++-
 gtk/gtkfilechooserwidget.c  |    4 ++--
 gtk/gtkflowbox.c            |   14 +++++++-------
 gtk/gtklockbutton.c         |    2 +-
 gtk/gtkmenutrackeritem.c    |    3 ++-
 gtk/gtkplacessidebar.c      |   21 +++++++++++----------
 gtk/gtkplacesview.c         |    9 +++++----
 gtk/gtkrecentmanager.c      |    8 +++-----
 gtk/gtkrevealer.c           |    2 +-
 gtk/gtksearchentry.c        |    2 +-
 gtk/gtkstacksidebar.c       |    2 +-
 gtk/gtktextlayout.c         |    2 +-
 gtk/gtkvolumebutton.c       |    3 ++-
 gtk/gtkwidget.c             |    7 +++----
 20 files changed, 62 insertions(+), 67 deletions(-)
---
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index b6cde75..eaaf17d 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -1063,7 +1063,7 @@ get_component_paddings (GtkCalendar *calendar,
   if (day_padding)
     {
       gtk_style_context_save (context);
-      gtk_style_context_add_class (context, "day-number");
+      gtk_style_context_add_class (context, I_("day-number"));
       gtk_style_context_get_padding (context, day_padding);
       gtk_style_context_restore (context);
     }
@@ -1071,7 +1071,7 @@ get_component_paddings (GtkCalendar *calendar,
   if (day_name_padding)
     {
       gtk_style_context_save (context);
-      gtk_style_context_add_class (context, "day-name");
+      gtk_style_context_add_class (context, I_("day-name"));
       gtk_style_context_get_padding (context, day_name_padding);
       gtk_style_context_restore (context);
     }
@@ -1079,7 +1079,7 @@ get_component_paddings (GtkCalendar *calendar,
   if (week_padding)
     {
       gtk_style_context_save (context);
-      gtk_style_context_add_class (context, "week-number");
+      gtk_style_context_add_class (context, I_("week-number"));
       gtk_style_context_get_padding (context, week_padding);
       gtk_style_context_restore (context);
     }
diff --git a/gtk/gtkcellareacontext.c b/gtk/gtkcellareacontext.c
index fcdedee..e8ae95e 100644
--- a/gtk/gtkcellareacontext.c
+++ b/gtk/gtkcellareacontext.c
@@ -131,10 +131,8 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
                                    g_param_spec_int ("minimum-width",
                                                      P_("Minimum Width"),
                                                      P_("Minimum cached width"),
-                                                     -1,
-                                                     G_MAXINT,
-                                                     -1,
-                                                     G_PARAM_READABLE));
+                                                     -1, G_MAXINT, -1,
+                                                     GTK_PARAM_READABLE));
 
   /**
    * GtkCellAreaContext:natural-width:
@@ -150,10 +148,8 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
                                    g_param_spec_int ("natural-width",
                                                      P_("Minimum Width"),
                                                      P_("Minimum cached width"),
-                                                     -1,
-                                                     G_MAXINT,
-                                                     -1,
-                                                     G_PARAM_READABLE));
+                                                     -1, G_MAXINT, -1,
+                                                     GTK_PARAM_READABLE));
 
   /**
    * GtkCellAreaContext:minimum-height:
@@ -169,10 +165,8 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
                                    g_param_spec_int ("minimum-height",
                                                      P_("Minimum Height"),
                                                      P_("Minimum cached height"),
-                                                     -1,
-                                                     G_MAXINT,
-                                                     -1,
-                                                     G_PARAM_READABLE));
+                                                     -1, G_MAXINT, -1,
+                                                     GTK_PARAM_READABLE));
 
   /**
    * GtkCellAreaContext:natural-height:
@@ -188,10 +182,8 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
                                    g_param_spec_int ("natural-height",
                                                      P_("Minimum Height"),
                                                      P_("Minimum cached height"),
-                                                     -1,
-                                                     G_MAXINT,
-                                                     -1,
-                                                     G_PARAM_READABLE));
+                                                     -1, G_MAXINT, -1,
+                                                     GTK_PARAM_READABLE));
 }
 
 /*************************************************************
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index d264b57..2514802 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -553,7 +553,7 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
   gtk_container_add (GTK_CONTAINER (box), button);
 
   cc->priv->settings = g_settings_new ("org.gtk.Settings.ColorChooser");
-  variant = g_settings_get_value (cc->priv->settings, "custom-colors");
+  variant = g_settings_get_value (cc->priv->settings, I_("custom-colors"));
   g_variant_iter_init (&iter, variant);
   i = 0;
   p = NULL;
@@ -587,7 +587,7 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
   gtk_container_add (GTK_CONTAINER (cc), box);
   gtk_container_add (GTK_CONTAINER (box), cc->priv->editor);
 
-  g_settings_get (cc->priv->settings, "selected-color", "(bdddd)",
+  g_settings_get (cc->priv->settings, I_("selected-color"), "(bdddd)",
                   &selected,
                   &color.red, &color.green, &color.blue, &color.alpha);
   if (selected)
diff --git a/gtk/gtkcolorplane.c b/gtk/gtkcolorplane.c
index 023a4c2..af0cede 100644
--- a/gtk/gtkcolorplane.c
+++ b/gtk/gtkcolorplane.c
@@ -26,6 +26,7 @@
 #include "gtkgesturelongpress.h"
 #include "gtkintl.h"
 #include "gtksnapshot.h"
+#include "gtkprivate.h"
 
 struct _GtkColorPlanePrivate
 {
@@ -516,7 +517,7 @@ gtk_color_plane_class_init (GtkColorPlaneClass *class)
                                                         "Hue Adjustment",
                                                         "Hue Adjustment",
                                                        GTK_TYPE_ADJUSTMENT,
-                                                       G_PARAM_WRITABLE |
+                                                       GTK_PARAM_WRITABLE |
                                                        G_PARAM_CONSTRUCT_ONLY));
 
   g_object_class_install_property (object_class,
@@ -525,7 +526,7 @@ gtk_color_plane_class_init (GtkColorPlaneClass *class)
                                                         "Saturation Adjustment",
                                                         "Saturation Adjustment",
                                                        GTK_TYPE_ADJUSTMENT,
-                                                       G_PARAM_WRITABLE |
+                                                       GTK_PARAM_WRITABLE |
                                                        G_PARAM_CONSTRUCT_ONLY));
 
   g_object_class_install_property (object_class,
@@ -534,7 +535,7 @@ gtk_color_plane_class_init (GtkColorPlaneClass *class)
                                                         "Value Adjustment",
                                                         "Value Adjustment",
                                                        GTK_TYPE_ADJUSTMENT,
-                                                       G_PARAM_WRITABLE |
+                                                       GTK_PARAM_WRITABLE |
                                                        G_PARAM_CONSTRUCT_ONLY));
 }
 
diff --git a/gtk/gtkcssiconthemevalue.c b/gtk/gtkcssiconthemevalue.c
index a417b43..aafd3f4 100644
--- a/gtk/gtkcssiconthemevalue.c
+++ b/gtk/gtkcssiconthemevalue.c
@@ -22,6 +22,7 @@
 #include "gtkicontheme.h"
 #include "gtksettingsprivate.h"
 #include "gtkstyleproviderprivate.h"
+#include "gtkintl.h"
 
 /*
  * The idea behind this value (and the '-gtk-icon-theme' CSS property) is
@@ -134,7 +135,7 @@ gtk_css_icon_theme_value_new (GtkIconTheme *icontheme)
   result = _gtk_css_value_new (GtkCssValue, &GTK_CSS_VALUE_ICON_THEME);
   result->icontheme = g_object_ref (icontheme);
 
-  g_object_set_data (G_OBJECT (icontheme), "-gtk-css-value", result);
+  g_object_set_data (G_OBJECT (icontheme), I_("-gtk-css-value"), result);
   result->changed_id = g_signal_connect (icontheme, "changed", G_CALLBACK 
(gtk_css_value_icon_theme_changed_cb), result);
 
   return result;
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index e80b442..4fc9bb4 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -1218,8 +1218,7 @@ parse_simple_selector (GtkCssParser   *parser,
   name = _gtk_css_parser_try_ident (parser, FALSE);
   if (name)
     {
-      selector = gtk_css_selector_new (&GTK_CSS_SELECTOR_NAME,
-                                       selector);
+      selector = gtk_css_selector_new (&GTK_CSS_SELECTOR_NAME, selector);
       selector->name.name = g_intern_string (name);
       g_free (name);
       parsed_something = TRUE;
diff --git a/gtk/gtkcssstaticstyle.c b/gtk/gtkcssstaticstyle.c
index 9ae4092..1152399 100644
--- a/gtk/gtkcssstaticstyle.c
+++ b/gtk/gtkcssstaticstyle.c
@@ -33,6 +33,7 @@
 #include "gtkcssstylepropertyprivate.h"
 #include "gtkcsstransitionprivate.h"
 #include "gtkprivate.h"
+#include "gtkintl.h"
 #include "gtksettings.h"
 #include "gtkstyleanimationprivate.h"
 #include "gtkstylepropertyprivate.h"
@@ -158,7 +159,7 @@ gtk_css_static_style_get_default (void)
       default_style = gtk_css_static_style_new_compute (GTK_STYLE_PROVIDER (settings),
                                                         NULL,
                                                         NULL);
-      g_object_set_data_full (G_OBJECT (settings), "gtk-default-style",
+      g_object_set_data_full (G_OBJECT (settings), I_("gtk-default-style"),
                               default_style, clear_default_style);
     }
 
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index db6b563..b29fe3d 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -8436,14 +8436,14 @@ gtk_file_chooser_widget_class_init (GtkFileChooserWidgetClass *class)
                                                          P_("Search mode"),
                                                          P_("Search mode"),
                                                          FALSE,
-                                                         G_PARAM_READWRITE));
+                                                         GTK_PARAM_READWRITE));
 
   g_object_class_install_property (gobject_class, PROP_SUBTITLE,
                                    g_param_spec_string ("subtitle",
                                                         P_("Subtitle"),
                                                         P_("Subtitle"),
                                                         "",
-                                                        G_PARAM_READABLE));
+                                                        GTK_PARAM_READABLE));
 
   _gtk_file_chooser_install_properties (gobject_class);
 
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 5043e03..6073b71 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -3409,7 +3409,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                        P_("The selection mode"),
                        GTK_TYPE_SELECTION_MODE,
                        GTK_SELECTION_SINGLE,
-                       G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                       GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:activate-on-single-click:
@@ -3422,7 +3422,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                           P_("Activate on Single Click"),
                           P_("Activate row on a single click"),
                           TRUE,
-                          G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                          GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:homogeneous:
@@ -3435,7 +3435,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                           P_("Homogeneous"),
                           P_("Whether the children should all be the same size"),
                           FALSE,
-                          G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                          GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:min-children-per-line:
@@ -3453,7 +3453,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                        P_("The minimum number of children to allocate "
                        "consecutively in the given orientation."),
                        0, G_MAXUINT, 0,
-                       G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                       GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:max-children-per-line:
@@ -3467,7 +3467,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                        P_("The maximum amount of children to request space for "
                           "consecutively in the given orientation."),
                        1, G_MAXUINT, DEFAULT_MAX_CHILDREN_PER_LINE,
-                       G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                       GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:row-spacing:
@@ -3479,7 +3479,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                        P_("Vertical spacing"),
                        P_("The amount of vertical space between two children"),
                        0, G_MAXUINT, 0,
-                       G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                       GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkFlowBox:column-spacing:
@@ -3491,7 +3491,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                        P_("Horizontal spacing"),
                        P_("The amount of horizontal space between two children"),
                        0, G_MAXUINT, 0,
-                       G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+                       GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   g_object_class_install_properties (object_class, LAST_PROP, props);
 
diff --git a/gtk/gtklockbutton.c b/gtk/gtklockbutton.c
index 7259042..63d4e99 100644
--- a/gtk/gtklockbutton.c
+++ b/gtk/gtklockbutton.c
@@ -244,7 +244,7 @@ gtk_lock_button_init (GtkLockButton *button)
   update_state (button);
 
   context = gtk_widget_get_style_context (GTK_WIDGET (button));
-  gtk_style_context_add_class (context, "lock");
+  gtk_style_context_add_class (context, I_("lock"));
 }
 
 static void
diff --git a/gtk/gtkmenutrackeritem.c b/gtk/gtkmenutrackeritem.c
index ef1b60c..0a7ca8c 100644
--- a/gtk/gtkmenutrackeritem.c
+++ b/gtk/gtkmenutrackeritem.c
@@ -22,6 +22,7 @@
 #include "gtkmenutrackeritem.h"
 #include "gtkactionmuxer.h"
 #include "gtkdebug.h"
+#include "gtkintl.h"
 
 #include "gtkactionmuxer.h"
 
@@ -141,7 +142,7 @@ gtk_menu_tracker_item_role_get_type (void)
       };
       GType type;
 
-      type = g_enum_register_static ("GtkMenuTrackerItemRole", values);
+      type = g_enum_register_static (I_("GtkMenuTrackerItemRole"), values);
 
       g_once_init_leave (&gtk_menu_tracker_item_role_type, type);
     }
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 3b16694..0ff021d 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -64,6 +64,7 @@
 #include "gtkgesturelongpress.h"
 #include "gtkbox.h"
 #include "gtkmodelbutton.h"
+#include "gtkprivate.h"
 
 /**
  * SECTION:gtkplacessidebar
@@ -4683,56 +4684,56 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class)
                                P_("Location to Select"),
                                P_("The location to highlight in the sidebar"),
                                G_TYPE_FILE,
-                               G_PARAM_READWRITE);
+                               GTK_PARAM_READWRITE);
   properties[PROP_OPEN_FLAGS] =
           g_param_spec_flags ("open-flags",
                               P_("Open Flags"),
                               P_("Modes in which the calling application can open locations selected in the 
sidebar"),
                               GTK_TYPE_PLACES_OPEN_FLAGS,
                               GTK_PLACES_OPEN_NORMAL,
-                              G_PARAM_READWRITE);
+                              GTK_PARAM_READWRITE);
   properties[PROP_SHOW_RECENT] =
           g_param_spec_boolean ("show-recent",
                                 P_("Show recent files"),
                                 P_("Whether the sidebar includes a builtin shortcut for recent files"),
                                 TRUE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_SHOW_DESKTOP] =
           g_param_spec_boolean ("show-desktop",
                                 P_("Show “Desktop”"),
                                 P_("Whether the sidebar includes a builtin shortcut to the Desktop folder"),
                                 TRUE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_SHOW_ENTER_LOCATION] =
           g_param_spec_boolean ("show-enter-location",
                                 P_("Show “Enter Location”"),
                                 P_("Whether the sidebar includes a builtin shortcut to manually enter a 
location"),
                                 FALSE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_LOCAL_ONLY] =
           g_param_spec_boolean ("local-only",
                                 P_("Local Only"),
                                 P_("Whether the sidebar only includes local files"),
                                 FALSE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_SHOW_TRASH] =
           g_param_spec_boolean ("show-trash",
                                 P_("Show “Trash”"),
                                 P_("Whether the sidebar includes a builtin shortcut to the Trash location"),
                                 TRUE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_SHOW_OTHER_LOCATIONS] =
           g_param_spec_boolean ("show-other-locations",
                                 P_("Show “Other locations”"),
                                 P_("Whether the sidebar includes an item to show external locations"),
                                 FALSE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
   properties[PROP_SHOW_STARRED_LOCATION] =
           g_param_spec_boolean ("show-starred-location",
                                 P_("Show “Starred Location”"),
                                 P_("Whether the sidebar includes an item to show starred files"),
                                 FALSE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
 
 
   /**
@@ -4744,7 +4745,7 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class)
    * Since: 3.18
    */
   properties[PROP_POPULATE_ALL] =
-          g_param_spec_boolean ("populate-all",
+          g_param_spec_boolean (I_("populate-all"),
                                 P_("Populate all"),
                                 P_("Whether to emit ::populate-popup for popups that are not menus"),
                                 FALSE,
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index e559b00..b07ffe9 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -22,6 +22,7 @@
 #include <gio/gvfs.h>
 #include <gtk/gtk.h>
 
+#include "gtkprivate.h"
 #include "gtkintl.h"
 #include "gtkmarshalers.h"
 #include "gtkplacesviewprivate.h"
@@ -2193,21 +2194,21 @@ gtk_places_view_class_init (GtkPlacesViewClass *klass)
                                 P_("Local Only"),
                                 P_("Whether the sidebar only includes local files"),
                                 FALSE,
-                                G_PARAM_READWRITE);
+                                GTK_PARAM_READWRITE);
 
   properties[PROP_LOADING] =
           g_param_spec_boolean ("loading",
                                 P_("Loading"),
                                 P_("Whether the view is loading locations"),
                                 FALSE,
-                                G_PARAM_READABLE);
+                                GTK_PARAM_READABLE);
 
   properties[PROP_FETCHING_NETWORKS] =
           g_param_spec_boolean ("fetching-networks",
                                 P_("Fetching networks"),
                                 P_("Whether the view is fetching networks"),
                                 FALSE,
-                                G_PARAM_READABLE);
+                                GTK_PARAM_READABLE);
 
   properties[PROP_OPEN_FLAGS] =
           g_param_spec_flags ("open-flags",
@@ -2215,7 +2216,7 @@ gtk_places_view_class_init (GtkPlacesViewClass *klass)
                               P_("Modes in which the calling application can open locations selected in the 
sidebar"),
                               GTK_TYPE_PLACES_OPEN_FLAGS,
                               GTK_PLACES_OPEN_NORMAL,
-                              G_PARAM_READWRITE);
+                              GTK_PARAM_READWRITE);
 
   g_object_class_install_properties (object_class, LAST_PROP, properties);
 
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index b93615d..6ebebf3 100644
--- a/gtk/gtkrecentmanager.c
+++ b/gtk/gtkrecentmanager.c
@@ -289,7 +289,7 @@ gtk_recent_manager_class_init (GtkRecentManagerClass *klass)
                                                         P_("Filename"),
                                                         P_("The full path to the file to be used to store 
and read the list"),
                                                         NULL,
-                                                        (G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE)));
+                                                        (G_PARAM_CONSTRUCT_ONLY | GTK_PARAM_READWRITE)));
 
   /**
    * GtkRecentManager:size:
@@ -303,10 +303,8 @@ gtk_recent_manager_class_init (GtkRecentManagerClass *klass)
                                    g_param_spec_int ("size",
                                                      P_("Size"),
                                                      P_("The size of the recently used resources list"),
-                                                     -1,
-                                                     G_MAXINT,
-                                                     0,
-                                                     G_PARAM_READABLE));
+                                                     -1, G_MAXINT, 0,
+                                                     GTK_PARAM_READABLE));
 
   /**
    * GtkRecentManager::changed:
diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c
index 8564147..af9a5de 100644
--- a/gtk/gtkrevealer.c
+++ b/gtk/gtkrevealer.c
@@ -258,7 +258,7 @@ gtk_revealer_class_init (GtkRevealerClass *klass)
                           P_("Child Revealed"),
                           P_("Whether the child is revealed and the animation target reached"),
                           FALSE,
-                          G_PARAM_READABLE);
+                          GTK_PARAM_READABLE);
 
   g_object_class_install_properties (object_class, LAST_PROP, props);
 
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index deedecf..522463e 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -370,7 +370,7 @@ gtk_search_entry_init (GtkSearchEntry *entry)
   if (GTK_IS_ACCESSIBLE (atk_obj))
     atk_object_set_name (atk_obj, _("Search"));
 
-  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (entry)), "search");
+  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (entry)), I_("search"));
 }
 
 /**
diff --git a/gtk/gtkstacksidebar.c b/gtk/gtkstacksidebar.c
index 1349993..1c1ea03 100644
--- a/gtk/gtkstacksidebar.c
+++ b/gtk/gtkstacksidebar.c
@@ -302,7 +302,7 @@ add_child (GtkWidget       *widget,
   g_signal_connect (widget, "child-notify::position",
                     G_CALLBACK (on_position_updated), sidebar);
 
-  g_object_set_data (G_OBJECT (item), "stack-child", widget);
+  g_object_set_data (G_OBJECT (item), I_("stack-child"), widget);
   g_hash_table_insert (priv->rows, widget, row);
   gtk_container_add (GTK_CONTAINER (priv->list), row);
 }
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 0d3ce08..69db15f 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -1532,7 +1532,7 @@ gtk_text_attr_appearance_new (const GtkTextAppearance *appearance)
 
   if (!klass.type)
     klass.type = gtk_text_attr_appearance_type =
-      pango_attr_type_register ("GtkTextAttrAppearance");
+      pango_attr_type_register (I_("GtkTextAttrAppearance"));
 
   result = g_slice_new (GtkTextAttrAppearance);
   result->attr.klass = &klass;
diff --git a/gtk/gtkvolumebutton.c b/gtk/gtkvolumebutton.c
index f406492..4dcf4ff 100644
--- a/gtk/gtkvolumebutton.c
+++ b/gtk/gtkvolumebutton.c
@@ -32,6 +32,7 @@
 #include "gtkadjustment.h"
 #include "gtkintl.h"
 #include "gtktooltip.h"
+#include "gtkprivate.h"
 
 
 /**
@@ -168,7 +169,7 @@ gtk_volume_button_class_init (GtkVolumeButtonClass *klass)
                                                          P_("Use symbolic icons"),
                                                          P_("Whether to use symbolic icons"),
                                                          TRUE,
-                                                         
G_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
+                                                         
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
 
   /* Bind class to template
    */
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 6fd9ae4..8d1d917 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6475,7 +6475,7 @@ void
 _gtk_widget_set_captured_event_handler (GtkWidget               *widget,
                                         GtkCapturedEventHandler  callback)
 {
-  g_object_set_data (G_OBJECT (widget), "captured-event-handler", callback);
+  g_object_set_data (G_OBJECT (widget), I_("captured-event-handler"), callback);
 }
 
 static gboolean
@@ -6576,7 +6576,7 @@ _gtk_widget_captured_event (GtkWidget      *widget,
 
   return_val = _gtk_widget_run_controllers (widget, event_copy, GTK_PHASE_CAPTURE);
 
-  handler = g_object_get_data (G_OBJECT (widget), "captured-event-handler");
+  handler = g_object_get_data (G_OBJECT (widget), I_("captured-event-handler"));
   if (!handler)
     goto out;
 
@@ -15458,8 +15458,7 @@ gtk_widget_init_legacy_controller (GtkWidget *widget)
   GtkEventController *controller;
 
   controller = _gtk_event_controller_legacy_new (widget);
-  g_object_set_data_full (G_OBJECT (widget),
-                          "gtk-widget-legacy-event-controller",
+  g_object_set_data_full (G_OBJECT (widget), I_("gtk-widget-legacy-event-controller"),
                           controller, g_object_unref);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]