[gimp/metadata-browser] libgimpwidgets: add gtk_separator_new() to gimp3migration.[ch]
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] libgimpwidgets: add gtk_separator_new() to gimp3migration.[ch]
- Date: Fri, 2 Dec 2011 02:00:51 +0000 (UTC)
commit 29c5dbf1126964741547f991f23341360e4b57f3
Author: Michael Natterer <mitch gimp org>
Date: Sun Oct 2 14:33:44 2011 +0200
libgimpwidgets: add gtk_separator_new() to gimp3migration.[ch]
and use it all over the place.
devel-docs/tools/widgets.c | 2 +-
libgimpwidgets/gimp3migration.c | 9 +++++++++
libgimpwidgets/gimp3migration.h | 1 +
3 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/devel-docs/tools/widgets.c b/devel-docs/tools/widgets.c
index 31de980..c700f9d 100644
--- a/devel-docs/tools/widgets.c
+++ b/devel-docs/tools/widgets.c
@@ -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");
diff --git a/libgimpwidgets/gimp3migration.c b/libgimpwidgets/gimp3migration.c
index 05e5a94..ac9a80a 100644
--- a/libgimpwidgets/gimp3migration.c
+++ b/libgimpwidgets/gimp3migration.c
@@ -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 ();
+}
diff --git a/libgimpwidgets/gimp3migration.h b/libgimpwidgets/gimp3migration.h
index 79777c2..5b0cab2 100644
--- a/libgimpwidgets/gimp3migration.h
+++ b/libgimpwidgets/gimp3migration.h
@@ -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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]