summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-01-28 23:28:16 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-01-28 23:28:16 +0000
commitecd7479a37eb3df8ea2e94b42dbd227efe8eab6b (patch)
tree3c26f8bb55b79fe6126f33b14bccc85df633f118
parentcb133a75a894f646e1d45e7a8c5725baa5e6e44c (diff)
downloadgdk-pixbuf-ecd7479a37eb3df8ea2e94b42dbd227efe8eab6b.tar.gz
Paint focus before shadow to give theme engines a bit more flexibility.
Mon Jan 28 18:25:10 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_entry_draw_frame): Paint focus before shadow to give theme engines a bit more flexibility. (#69857)
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLog.pre-2-07
-rw-r--r--ChangeLog.pre-2-107
-rw-r--r--ChangeLog.pre-2-27
-rw-r--r--ChangeLog.pre-2-47
-rw-r--r--ChangeLog.pre-2-67
-rw-r--r--ChangeLog.pre-2-87
-rw-r--r--gtk/gtkentry.c16
8 files changed, 61 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 0f3030a42..81d647ce0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Jan 28 18:25:10 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_draw_frame): Paint focus
+ before shadow to give theme engines a bit more
+ flexibility. (#69857)
+
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
@@ -33,6 +39,7 @@ Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
Pass a GtkStateType appropriate to the focussed cell's state
to gtk_paint_focus.
+>>>>>>> 1.2878
Mon Jan 28 14:44:40 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 0f3030a42..81d647ce0 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,9 @@
+Mon Jan 28 18:25:10 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_draw_frame): Paint focus
+ before shadow to give theme engines a bit more
+ flexibility. (#69857)
+
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
@@ -33,6 +39,7 @@ Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
Pass a GtkStateType appropriate to the focussed cell's state
to gtk_paint_focus.
+>>>>>>> 1.2878
Mon Jan 28 14:44:40 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 0f3030a42..81d647ce0 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,9 @@
+Mon Jan 28 18:25:10 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_draw_frame): Paint focus
+ before shadow to give theme engines a bit more
+ flexibility. (#69857)
+
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
@@ -33,6 +39,7 @@ Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
Pass a GtkStateType appropriate to the focussed cell's state
to gtk_paint_focus.
+>>>>>>> 1.2878
Mon Jan 28 14:44:40 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 0f3030a42..81d647ce0 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,9 @@
+Mon Jan 28 18:25:10 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_draw_frame): Paint focus
+ before shadow to give theme engines a bit more
+ flexibility. (#69857)
+
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
@@ -33,6 +39,7 @@ Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
Pass a GtkStateType appropriate to the focussed cell's state
to gtk_paint_focus.
+>>>>>>> 1.2878
Mon Jan 28 14:44:40 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 0f3030a42..81d647ce0 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,9 @@
+Mon Jan 28 18:25:10 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_draw_frame): Paint focus
+ before shadow to give theme engines a bit more
+ flexibility. (#69857)
+
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
@@ -33,6 +39,7 @@ Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
Pass a GtkStateType appropriate to the focussed cell's state
to gtk_paint_focus.
+>>>>>>> 1.2878
Mon Jan 28 14:44:40 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 0f3030a42..81d647ce0 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,9 @@
+Mon Jan 28 18:25:10 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_draw_frame): Paint focus
+ before shadow to give theme engines a bit more
+ flexibility. (#69857)
+
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
@@ -33,6 +39,7 @@ Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
Pass a GtkStateType appropriate to the focussed cell's state
to gtk_paint_focus.
+>>>>>>> 1.2878
Mon Jan 28 14:44:40 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 0f3030a42..81d647ce0 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,9 @@
+Mon Jan 28 18:25:10 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_draw_frame): Paint focus
+ before shadow to give theme engines a bit more
+ flexibility. (#69857)
+
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
@@ -33,6 +39,7 @@ Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
Pass a GtkStateType appropriate to the focussed cell's state
to gtk_paint_focus.
+>>>>>>> 1.2878
Mon Jan 28 14:44:40 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index bc0dec176..1083a37cc 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -1255,10 +1255,6 @@ gtk_entry_draw_frame (GtkWidget *widget)
if (GTK_WIDGET_HAS_FOCUS (widget) && !interior_focus)
{
- gtk_paint_focus (widget->style, widget->window, GTK_WIDGET_STATE (widget),
- NULL, widget, "entry",
- 0, 0, width, height);
-
x += focus_width;
y += focus_width;
width -= 2 * focus_width;
@@ -1269,6 +1265,18 @@ gtk_entry_draw_frame (GtkWidget *widget)
GTK_STATE_NORMAL, GTK_SHADOW_IN,
NULL, widget, "entry",
x, y, width, height);
+
+ if (GTK_WIDGET_HAS_FOCUS (widget) && !interior_focus)
+ {
+ x -= focus_width;
+ y -= focus_width;
+ width += 2 * focus_width;
+ height += 2 * focus_width;
+
+ gtk_paint_focus (widget->style, widget->window, GTK_WIDGET_STATE (widget),
+ NULL, widget, "entry",
+ 0, 0, width, height);
+ }
}
static gint