summaryrefslogtreecommitdiff
path: root/gtk/gtkitemfactory.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1998-12-14 23:26:12 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-12-14 23:26:12 +0000
commit698a11c6069a3700e9123164b05c1dc592efeff7 (patch)
treeecf1fe8cfd28598b2556d256efe9ea7ada0f5b9c /gtk/gtkitemfactory.h
parentc46265c82c3602a55e564749f9e15b3cce1b840e (diff)
downloadgtk+-698a11c6069a3700e9123164b05c1dc592efeff7.tar.gz
Append locale-specific suffixes to default rc file names, and look these
Mon Dec 14 16:10:05 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkrc.c (gtk_rc_init): Append locale-specific suffixes to default rc file names, and look these up in addition to the base filename, to facilitate having the correct fontset per-locale. move $(sysconfdir)/gtkrc to $(sysconfdir)/gtk/gtkrc * gtk/gtkitemfactory.[ch] (gtk_item_factory_set_translate_func): New function to set a function to translate menu paths. * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Free results of g_strsplit().
Diffstat (limited to 'gtk/gtkitemfactory.h')
-rw-r--r--gtk/gtkitemfactory.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkitemfactory.h b/gtk/gtkitemfactory.h
index 1f93e1cbd5..4110cc6f5c 100644
--- a/gtk/gtkitemfactory.h
+++ b/gtk/gtkitemfactory.h
@@ -35,6 +35,8 @@ extern "C" {
typedef void (*GtkPrintFunc) (gpointer func_data,
gchar *str);
+typedef gchar * (*GtkTranslateFunc) (const gchar *path,
+ gpointer func_data);
typedef void (*GtkItemFactoryCallback) ();
typedef void (*GtkItemFactoryCallback1) (gpointer callback_data,
guint callback_action,
@@ -63,6 +65,10 @@ struct _GtkItemFactory
GtkAccelGroup *accel_group;
GtkWidget *widget;
GSList *widgets_by_action;
+
+ GtkTranslateFunc translate_func;
+ gpointer translate_data;
+ GtkDestroyNotify translate_notify;
};
struct _GtkItemFactoryClass
@@ -185,6 +191,10 @@ void gtk_item_factory_popup_with_data(GtkItemFactory *ifactory,
guint32 time);
gpointer gtk_item_factory_popup_data (GtkItemFactory *ifactory);
gpointer gtk_item_factory_popup_data_from_widget (GtkWidget *widget);
+void gtk_item_factory_set_translate_func (GtkItemFactory *ifactory,
+ GtkTranslateFunc func,
+ gpointer data,
+ GtkDestroyNotify notify);
/* Compatibility functions for deprecated GtkMenuFactory code
*/