[gtk+] Remove deprecated functions from GtkProgressBar
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove deprecated functions from GtkProgressBar
- Date: Fri, 7 May 2010 07:12:00 +0000 (UTC)
commit 9aabc1b1a736f5d6da01387cb900a6b5c985041e
Author: Javier Jardón <jjardon gnome org>
Date: Fri May 7 09:10:52 2010 +0200
Remove deprecated functions from GtkProgressBar
gtk/gtkprogressbar.c | 107 --------------------------------------------------
1 files changed, 0 insertions(+), 107 deletions(-)
---
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index 853667d..6af35a4 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -72,14 +72,6 @@ static void gtk_progress_bar_real_update (GtkProgress *progress);
static void gtk_progress_bar_paint (GtkProgress *progress);
static void gtk_progress_bar_act_mode_enter (GtkProgress *progress);
-static void gtk_progress_bar_set_bar_style_internal (GtkProgressBar *pbar,
- GtkProgressBarStyle style);
-static void gtk_progress_bar_set_discrete_blocks_internal (GtkProgressBar *pbar,
- guint blocks);
-static void gtk_progress_bar_set_activity_step_internal (GtkProgressBar *pbar,
- guint step);
-static void gtk_progress_bar_set_activity_blocks_internal (GtkProgressBar *pbar,
- guint blocks);
typedef struct
{
@@ -953,67 +945,6 @@ gtk_progress_bar_paint (GtkProgress *progress)
}
}
-static void
-gtk_progress_bar_set_bar_style_internal (GtkProgressBar *pbar,
- GtkProgressBarStyle bar_style)
-{
- g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar));
-
- if (pbar->bar_style != bar_style)
- {
- pbar->bar_style = bar_style;
-
- if (gtk_widget_is_drawable (GTK_WIDGET (pbar)))
- gtk_widget_queue_resize (GTK_WIDGET (pbar));
-
- g_object_notify (G_OBJECT (pbar), "bar-style");
- }
-}
-
-static void
-gtk_progress_bar_set_discrete_blocks_internal (GtkProgressBar *pbar,
- guint blocks)
-{
- g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar));
- g_return_if_fail (blocks > 1);
-
- if (pbar->blocks != blocks)
- {
- pbar->blocks = blocks;
-
- if (gtk_widget_is_drawable (GTK_WIDGET (pbar)))
- gtk_widget_queue_resize (GTK_WIDGET (pbar));
-
- g_object_notify (G_OBJECT (pbar), "discrete-blocks");
- }
-}
-
-static void
-gtk_progress_bar_set_activity_step_internal (GtkProgressBar *pbar,
- guint step)
-{
- g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar));
-
- if (pbar->activity_step != step)
- {
- pbar->activity_step = step;
- g_object_notify (G_OBJECT (pbar), "activity-step");
- }
-}
-
-static void
-gtk_progress_bar_set_activity_blocks_internal (GtkProgressBar *pbar,
- guint blocks)
-{
- g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar));
- g_return_if_fail (blocks > 1);
-
- if (pbar->activity_blocks != blocks)
- {
- pbar->activity_blocks = blocks;
- g_object_notify (G_OBJECT (pbar), "activity-blocks");
- }
-}
/*******************************************************************/
@@ -1204,44 +1135,6 @@ gtk_progress_bar_get_orientation (GtkProgressBar *pbar)
return pbar->orientation;
}
-void
-gtk_progress_bar_set_bar_style (GtkProgressBar *pbar,
- GtkProgressBarStyle bar_style)
-{
- g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar));
-
- gtk_progress_bar_set_bar_style_internal (pbar, bar_style);
-}
-
-void
-gtk_progress_bar_set_discrete_blocks (GtkProgressBar *pbar,
- guint blocks)
-{
- g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar));
- g_return_if_fail (blocks > 1);
-
- gtk_progress_bar_set_discrete_blocks_internal (pbar, blocks);
-}
-
-void
-gtk_progress_bar_set_activity_step (GtkProgressBar *pbar,
- guint step)
-{
- g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar));
-
- gtk_progress_bar_set_activity_step_internal (pbar, step);
-}
-
-void
-gtk_progress_bar_set_activity_blocks (GtkProgressBar *pbar,
- guint blocks)
-{
- g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar));
- g_return_if_fail (blocks > 1);
-
- gtk_progress_bar_set_activity_blocks_internal (pbar, blocks);
-}
-
/**
* gtk_progress_bar_set_ellipsize:
* @pbar: a #GtkProgressBar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]