[gtk+] Remove now unused GtkProgressBarOrientation enum



commit 6b5672c1998dd811b35dbe26b0a74f7e814244b6
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Sep 1 23:29:53 2010 -0400

    Remove now unused GtkProgressBarOrientation enum

 gtk/gtkprogressbar.h |    8 --------
 tests/testgtk.c      |    4 ++--
 2 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkprogressbar.h b/gtk/gtkprogressbar.h
index 5bf855f..a191357 100644
--- a/gtk/gtkprogressbar.h
+++ b/gtk/gtkprogressbar.h
@@ -47,14 +47,6 @@ typedef struct _GtkProgressBar              GtkProgressBar;
 typedef struct _GtkProgressBarPrivate       GtkProgressBarPrivate;
 typedef struct _GtkProgressBarClass         GtkProgressBarClass;
 
-typedef enum
-{
-  GTK_PROGRESS_LEFT_TO_RIGHT,
-  GTK_PROGRESS_RIGHT_TO_LEFT,
-  GTK_PROGRESS_BOTTOM_TO_TOP,
-  GTK_PROGRESS_TOP_TO_BOTTOM
-} GtkProgressBarOrientation;
-
 struct _GtkProgressBar
 {
   GtkWidget parent;
diff --git a/tests/testgtk.c b/tests/testgtk.c
index ce3060f..095ec0b 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -8561,12 +8561,12 @@ progressbar_toggle_orientation (GtkWidget *widget, gpointer data)
 
   i = gtk_combo_box_get_active (GTK_COMBO_BOX (widget));
 
-  if (i == GTK_PROGRESS_LEFT_TO_RIGHT || i == GTK_PROGRESS_RIGHT_TO_LEFT)
+  if (i == 0 || i == 1)
     gtk_orientable_set_orientation (GTK_ORIENTABLE (pdata->pbar), GTK_ORIENTATION_HORIZONTAL);
   else
     gtk_orientable_set_orientation (GTK_ORIENTABLE (pdata->pbar), GTK_ORIENTATION_VERTICAL);
  
-  if (i == GTK_PROGRESS_RIGHT_TO_LEFT || i == GTK_PROGRESS_BOTTOM_TO_TOP)
+  if (i == 1 || i == 2)
     gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR (pdata->pbar), TRUE);
   else
     gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR (pdata->pbar), FALSE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]