Remove now unused GtkProgressBarOrientation enum

This commit is contained in:
Matthias Clasen 2010-09-01 23:29:53 -04:00
parent 0ff6aedca0
commit 6b5672c199
2 changed files with 2 additions and 10 deletions

View File

@ -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;

View File

@ -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);