Commit f007ce35 authored by Michael Natterer's avatar Michael Natterer 😴

libgimpwidgets: add gtk_separator_new() to gimp3migration.[ch]

and use it all over the place.
parent 2c175b06
......@@ -218,7 +218,7 @@ create_chain_button (void)
label = gtk_label_new ("Linked ");
gtk_table_attach (GTK_TABLE (table), label, 1,2, 1,2,
GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
separator = gtk_vseparator_new ();
separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
gtk_table_attach (GTK_TABLE (table), separator, 2,3, 0,2,
GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
label = gtk_label_new (" Unlinked");
......
......@@ -75,3 +75,12 @@ gtk_scrollbar_new (GtkOrientation orientation,
else
return gtk_vscrollbar_new (adjustment);
}
GtkWidget *
gtk_separator_new (GtkOrientation orientation)
{
if (orientation == GTK_ORIENTATION_HORIZONTAL)
return gtk_hseparator_new ();
else
return gtk_vseparator_new ();
}
......@@ -41,6 +41,7 @@ GtkWidget * gtk_scale_new (GtkOrientation orientation,
GtkAdjustment *adjustment);
GtkWidget * gtk_scrollbar_new (GtkOrientation orientation,
GtkAdjustment *adjustment);
GtkWidget * gtk_separator_new (GtkOrientation orientation);
#endif /* __GIMP_3_MIGRATION_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment