]> Pileus Git - ~andy/gtk/commitdiff
Paint focus before shadow to give theme engines a bit more flexibility.
authorOwen Taylor <otaylor@redhat.com>
Mon, 28 Jan 2002 23:28:16 +0000 (23:28 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 28 Jan 2002 23:28:16 +0000 (23:28 +0000)
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)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkentry.c

index 0f3030a42f2a4a19328a8d4c0d48522a3e327e9f..81d647ce0ecbaff72b2265ab27952f2ec3eb8e1b 100644 (file)
--- 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
index 0f3030a42f2a4a19328a8d4c0d48522a3e327e9f..81d647ce0ecbaff72b2265ab27952f2ec3eb8e1b 100644 (file)
@@ -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
index 0f3030a42f2a4a19328a8d4c0d48522a3e327e9f..81d647ce0ecbaff72b2265ab27952f2ec3eb8e1b 100644 (file)
@@ -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
index 0f3030a42f2a4a19328a8d4c0d48522a3e327e9f..81d647ce0ecbaff72b2265ab27952f2ec3eb8e1b 100644 (file)
@@ -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
index 0f3030a42f2a4a19328a8d4c0d48522a3e327e9f..81d647ce0ecbaff72b2265ab27952f2ec3eb8e1b 100644 (file)
@@ -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
index 0f3030a42f2a4a19328a8d4c0d48522a3e327e9f..81d647ce0ecbaff72b2265ab27952f2ec3eb8e1b 100644 (file)
@@ -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
index 0f3030a42f2a4a19328a8d4c0d48522a3e327e9f..81d647ce0ecbaff72b2265ab27952f2ec3eb8e1b 100644 (file)
@@ -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
index bc0dec17669b403946fb628df545e22bd770cddd..1083a37cc97ad9a5dfe8a9033eb8bd3be6e32d1e 100644 (file)
@@ -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