summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-03-03 18:39:33 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-03-03 18:39:33 +0000
commitbcb6720d6ef761d71a4ac30438f4b1ab39ef3c41 (patch)
tree90b444581d45a492d845d85dd608c0e6f32c41a8
parentefefd9f0bab3c57494a55b0418b5d488f0dae64b (diff)
downloadgtk+-bcb6720d6ef761d71a4ac30438f4b1ab39ef3c41.tar.gz
Remove spurious const.
Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious const. * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path. * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there is no focus widget for the dialog currently, grab the focus as well as the default. * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get the action area's children to iterate through, not the dialog's children.
-rw-r--r--ChangeLog15
-rw-r--r--ChangeLog.pre-2-015
-rw-r--r--ChangeLog.pre-2-1015
-rw-r--r--ChangeLog.pre-2-215
-rw-r--r--ChangeLog.pre-2-415
-rw-r--r--ChangeLog.pre-2-615
-rw-r--r--ChangeLog.pre-2-815
-rw-r--r--gdk-pixbuf-2.0.pc.in2
-rw-r--r--gtk+-2.0.pc.in2
-rw-r--r--gtk/gtkdialog.c11
-rw-r--r--gtk/gtkimmodule.c2
11 files changed, 116 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index dae1f026b0..1e0221640c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
+ const.
+
+ * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
+ is no focus widget for the dialog currently, grab the focus as well
+ as the default.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
+ the action area's children to iterate through, not the
+ dialog's children.
+
Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
* tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index dae1f026b0..1e0221640c 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,18 @@
+Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
+ const.
+
+ * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
+ is no focus widget for the dialog currently, grab the focus as well
+ as the default.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
+ the action area's children to iterate through, not the
+ dialog's children.
+
Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
* tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index dae1f026b0..1e0221640c 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,18 @@
+Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
+ const.
+
+ * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
+ is no focus widget for the dialog currently, grab the focus as well
+ as the default.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
+ the action area's children to iterate through, not the
+ dialog's children.
+
Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
* tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index dae1f026b0..1e0221640c 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,18 @@
+Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
+ const.
+
+ * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
+ is no focus widget for the dialog currently, grab the focus as well
+ as the default.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
+ the action area's children to iterate through, not the
+ dialog's children.
+
Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
* tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index dae1f026b0..1e0221640c 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,18 @@
+Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
+ const.
+
+ * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
+ is no focus widget for the dialog currently, grab the focus as well
+ as the default.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
+ the action area's children to iterate through, not the
+ dialog's children.
+
Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
* tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index dae1f026b0..1e0221640c 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,18 @@
+Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
+ const.
+
+ * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
+ is no focus widget for the dialog currently, grab the focus as well
+ as the default.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
+ the action area's children to iterate through, not the
+ dialog's children.
+
Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
* tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index dae1f026b0..1e0221640c 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,18 @@
+Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
+ const.
+
+ * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
+ is no focus widget for the dialog currently, grab the focus as well
+ as the default.
+
+ * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
+ the action area's children to iterate through, not the
+ dialog's children.
+
Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
* tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
diff --git a/gdk-pixbuf-2.0.pc.in b/gdk-pixbuf-2.0.pc.in
index 96afc3d31b..bc22fd3d1f 100644
--- a/gdk-pixbuf-2.0.pc.in
+++ b/gdk-pixbuf-2.0.pc.in
@@ -8,4 +8,4 @@ Description: Image loading and scaling
Version: @VERSION@
Requires: gobject-2.0,gmodule-2.0
Libs: -L${libdir} -lgdk_pixbuf-1.3 @INTLLIBS@ @MATH_LIB@
-Cflags: -I${includedir}
+Cflags: -I${includedir}/gtk-2.0.
diff --git a/gtk+-2.0.pc.in b/gtk+-2.0.pc.in
index e052d884f9..baab69a33a 100644
--- a/gtk+-2.0.pc.in
+++ b/gtk+-2.0.pc.in
@@ -9,4 +9,4 @@ Description: GIMP Tool Kit (${target} target)
Version: @VERSION@
Requires: gdk-${target}-2.0
Libs: -L${libdir} -lgtk-${target}-1.3
-Cflags: -I${includedir}
+Cflags: -I${includedir}/gtk-2.0
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 0f13d57a4e..cdacccaf49 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -511,7 +511,7 @@ gtk_dialog_set_default_response (GtkDialog *dialog,
GList *children;
GList *tmp_list;
- children = gtk_container_children (GTK_CONTAINER (dialog));
+ children = gtk_container_children (GTK_CONTAINER (dialog->action_area));
tmp_list = children;
while (tmp_list != NULL)
@@ -521,8 +521,13 @@ gtk_dialog_set_default_response (GtkDialog *dialog,
"gtk-dialog-response-data");
if (rd && rd->response_id == response_id)
- gtk_widget_grab_default (widget);
-
+ {
+ gtk_widget_grab_default (widget);
+
+ if (!GTK_WINDOW (dialog)->focus_widget)
+ gtk_widget_grab_focus (widget);
+ }
+
tmp_list = g_list_next (tmp_list);
}
diff --git a/gtk/gtkimmodule.c b/gtk/gtkimmodule.c
index 017f7ecfb0..7d882a293e 100644
--- a/gtk/gtkimmodule.c
+++ b/gtk/gtkimmodule.c
@@ -227,7 +227,7 @@ gtk_im_module_init ()
{
GString *line_buf = g_string_new (NULL);
GString *tmp_buf = g_string_new (NULL);
- const gchar *filename = gtk_rc_get_im_module_file();
+ gchar *filename = gtk_rc_get_im_module_file();
FILE *file;
gboolean have_error = FALSE;