summaryrefslogtreecommitdiff
path: root/gtk/gtkrc.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-02-09 00:19:29 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-02-09 00:19:29 +0000
commit7b79dfbef85c458a1d4d89b3092312b9c09245ba (patch)
treed9d374082c85fb6324e9a59c2d270c810b070fec /gtk/gtkrc.c
parent6c07eadbbebbb97a104f20834c0c89c2800c46ad (diff)
downloadgdk-pixbuf-7b79dfbef85c458a1d4d89b3092312b9c09245ba.tar.gz
Add a function to delete all bindings add by gtk_binding_parse_binding()
Fri Feb 8 18:46:13 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkbindings.[ch] (_gtk_binding_reset_parsed): Add a function to delete all bindings add by gtk_binding_parse_binding() when rereading RC files. * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Reset binding set content as well as RC content. * gtk/gtkbindings.c (binding_compose_params): Fix various GValue handling problems. * gtk/gtkentry.c (gtk_entry_class_init): Remove bindings for C-b, C-f, M-b, M-f, C-a, C-e, C-w, C-y, M-space, C-u, C-k, M-\, M-d, C-d. * gtk/gtktextview.c (gtk_text_view_class_init): Remove same bindings as GtkEntry, plus C-n, C-p, C-space * gtk/gtkrc.key.default gtk/gtkrc.key.emacs gtk/Makefile.am: Add Emacs and Default key themes.
Diffstat (limited to 'gtk/gtkrc.c')
-rw-r--r--gtk/gtkrc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c
index 2905e79e4..8d3d7ec18 100644
--- a/gtk/gtkrc.c
+++ b/gtk/gtkrc.c
@@ -662,6 +662,14 @@ _gtk_rc_init (void)
}
gtk_rc_reparse_all_for_settings (gtk_settings_get_default (), TRUE);
+
+ /* Default RC string */
+ gtk_rc_parse_string ("style \"gtk-default-tooltips-style\" {\n"
+ " bg[NORMAL] = \"#ffffc0\"\n"
+ " fg[NORMAL] = \"#000000\"\n"
+ "}\n"
+ "\n"
+ "widget \"gtk-tooltips*\" style : gtk \"gtk-default-tooltips-style\"\n");
}
void
@@ -1320,7 +1328,8 @@ gtk_rc_reparse_all_for_settings (GtkSettings *settings,
if (force_load || mtime_modified)
{
GSList *old_files;
-
+
+ _gtk_binding_reset_parsed ();
gtk_rc_clear_styles (context);
g_object_freeze_notify (G_OBJECT (context->settings));