diff options
| author | Denis Declara <declara91@gmail.com> | 2012-05-05 13:32:42 +0000 |
|---|---|---|
| committer | Denis Declara <declara91@gmail.com> | 2012-05-05 13:32:42 +0000 |
| commit | aeb9c1bde66de096910757abb17dedb94ad74207 (patch) | |
| tree | c0adf97685b0fa8af1553b14d20601f280492762 /src/dialogs/find.cpp | |
| parent | Fixed some math, so that the objects now line up correctly (diff) | |
| parent | Adding checks to prevent null pointer dereferences (diff) | |
| download | inkscape-aeb9c1bde66de096910757abb17dedb94ad74207.tar.gz inkscape-aeb9c1bde66de096910757abb17dedb94ad74207.zip | |
Trunk merge
(bzr r11073.1.29)
Diffstat (limited to 'src/dialogs/find.cpp')
| -rw-r--r-- | src/dialogs/find.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/dialogs/find.cpp b/src/dialogs/find.cpp index 3bd22b8eb..8653e42ae 100644 --- a/src/dialogs/find.cpp +++ b/src/dialogs/find.cpp @@ -555,7 +555,7 @@ sp_find_types () { #if GTK_CHECK_VERSION(3,0,0) GtkWidget *vb = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); - gtk_box_new(GTK_BOX(vb), FALSE); + gtk_box_set_homogeneous(GTK_BOX(vb), FALSE); #else GtkWidget *vb = gtk_vbox_new (FALSE, 4); #endif @@ -587,7 +587,7 @@ sp_find_types () { #if GTK_CHECK_VERSION(3,0,0) GtkWidget *vb_all = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); - gtk_box_new(GTK_BOX(vb_all), FALSE); + gtk_box_set_homogeneous(GTK_BOX(vb_all), FALSE); #else GtkWidget *vb_all = gtk_vbox_new (FALSE, 0); #endif @@ -735,7 +735,7 @@ sp_find_dialog_old (void) /* Toplevel vbox */ #if GTK_CHECK_VERSION(3,0,0) GtkWidget *vb = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); - gtk_box_new(GTK_BOX(vb), FALSE); + gtk_box_set_homogeneous(GTK_BOX(vb), FALSE); #else GtkWidget *vb = gtk_vbox_new (FALSE, 0); #endif @@ -753,7 +753,11 @@ sp_find_dialog_old (void) gtk_box_pack_start (GTK_BOX (vb), types, FALSE, FALSE, 0); { +#if GTK_CHECK_VERSION(3,0,0) + GtkWidget *w = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); +#else GtkWidget *w = gtk_hseparator_new (); +#endif gtk_widget_show (w); gtk_box_pack_start (GTK_BOX (vb), w, FALSE, FALSE, 3); |
