]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkhandlebox.c
Fix some issues with background drawing in RTL. (#318781, Eric Cazeaux)
[~andy/gtk] / gtk / gtkhandlebox.c
index f8c4e899aa06bae15a7a61bb56638b1c7426df7c..e5f535163d9ed241f3585a63e5576933d4aeccf8 100644 (file)
@@ -170,7 +170,7 @@ gtk_handle_box_get_type (void)
        (GInstanceInitFunc) gtk_handle_box_init,
       };
 
-      handle_box_type = g_type_register_static (GTK_TYPE_BIN, "GtkHandleBox",
+      handle_box_type = g_type_register_static (GTK_TYPE_BIN, I_("GtkHandleBox"),
                                                &handle_box_info, 0);
     }
 
@@ -257,7 +257,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
   class->child_detached = NULL;
 
   handle_box_signals[SIGNAL_CHILD_ATTACHED] =
-    g_signal_new ("child_attached",
+    g_signal_new (I_("child_attached"),
                  G_OBJECT_CLASS_TYPE (gobject_class),
                  G_SIGNAL_RUN_FIRST,
                  G_STRUCT_OFFSET (GtkHandleBoxClass, child_attached),
@@ -266,7 +266,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
                  G_TYPE_NONE, 1,
                  GTK_TYPE_WIDGET);
   handle_box_signals[SIGNAL_CHILD_DETACHED] =
-    g_signal_new ("child_detached",
+    g_signal_new (I_("child_detached"),
                  G_OBJECT_CLASS_TYPE (gobject_class),
                  G_SIGNAL_RUN_FIRST,
                  G_STRUCT_OFFSET (GtkHandleBoxClass, child_detached),
@@ -667,11 +667,9 @@ gtk_handle_box_size_allocate (GtkWidget     *widget,
 
   if (bin->child && GTK_WIDGET_VISIBLE (bin->child))
     {
-      GtkWidget *child;
       GtkAllocation child_allocation;
       guint border_width;
 
-      child = bin->child;
       border_width = GTK_CONTAINER (widget)->border_width;
 
       child_allocation.x = border_width;
@@ -904,8 +902,7 @@ gtk_handle_box_paint (GtkWidget      *widget,
 {
   GtkBin *bin;
   GtkHandleBox *hb;
-  guint width;
-  guint height;
+  guint width, height;
   GdkRectangle rect;
   GdkRectangle dest;
   gint handle_position;