app: set all GtkPaned widgets to have wide handles

the narrow handles' event areas did overlap with our own widgets close
to the handle.
This commit is contained in:
Michael Natterer 2018-05-09 12:51:31 +02:00
parent 407603326f
commit 4e7eead7e3
3 changed files with 4 additions and 0 deletions

View File

@ -438,6 +438,7 @@ gimp_image_window_constructed (GObject *object)
/* Create the left pane */
private->left_hpane = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_paned_set_wide_handle (GTK_PANED (private->left_hpane), TRUE);
gtk_box_pack_start (GTK_BOX (private->hbox), private->left_hpane,
TRUE, TRUE, 0);
gtk_widget_show (private->left_hpane);
@ -453,6 +454,7 @@ gimp_image_window_constructed (GObject *object)
/* Create the right pane */
private->right_hpane = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_paned_set_wide_handle (GTK_PANED (private->right_hpane), TRUE);
gtk_paned_pack2 (GTK_PANED (private->left_hpane), private->right_hpane,
TRUE, FALSE);
gtk_widget_show (private->right_hpane);

View File

@ -133,6 +133,7 @@ gimp_color_display_editor_init (GimpColorDisplayEditor *editor)
GTK_ORIENTATION_VERTICAL);
paned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
gtk_paned_set_wide_handle (GTK_PANED (paned), TRUE);
gtk_box_pack_start (GTK_BOX (editor), paned, TRUE, TRUE, 0);
gtk_widget_show (paned);

View File

@ -586,6 +586,7 @@ gimp_paned_box_add_widget (GimpPanedBox *paned_box,
/* GtkPaned is abstract :( */
orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (paned_box));
paned = gtk_paned_new (orientation);
gtk_paned_set_wide_handle (GTK_PANED (paned), TRUE);
if (GTK_IS_PANED (parent))
{