[pan2] Bug 579753: WARNING: setting an adjustment with non-zero page size is deprecated
- From: Charles Stephen Kerr <csk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pan2] Bug 579753: WARNING: setting an adjustment with non-zero page size is deprecated
- Date: Mon, 28 Sep 2009 04:22:13 +0000 (UTC)
commit e8619c81300b871a8b7230a153558e9723ec83a9
Author: Charles Kerr <charles rebelbase com>
Date: Sun Sep 27 23:21:24 2009 -0500
Bug 579753: WARNING: setting an adjustment with non-zero page size is deprecated
pan/gui/dl-headers-ui.cc | 4 ++--
pan/gui/score-add-ui.cc | 4 ++--
pan/gui/server-ui.cc | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/pan/gui/dl-headers-ui.cc b/pan/gui/dl-headers-ui.cc
index ca34285..7446e12 100644
--- a/pan/gui/dl-headers-ui.cc
+++ b/pan/gui/dl-headers-ui.cc
@@ -135,7 +135,7 @@ pan :: headers_dialog (Data& data, Prefs& prefs, Queue& queue,
state->n_days_rb = w = gtk_radio_button_new_with_mnemonic (NULL, _("Get the last N _days' headers: "));
gtk_button_set_alignment (GTK_BUTTON(w), 0.5, 0.0);
gtk_table_attach_defaults (GTK_TABLE(t), w, 0, 1, row, row+1);
- adj = GTK_ADJUSTMENT(gtk_adjustment_new (n_days, 1, INT_MAX, 1, 1, 1));
+ adj = GTK_ADJUSTMENT(gtk_adjustment_new (n_days, 1, INT_MAX, 1, 1, 0));
state->n_days_spinbutton = x = gtk_spin_button_new (adj, 1, 0);
g_signal_connect (x, "focus_in_event", GTK_SIGNAL_FUNC(spin_tickled_cb), state->n_days_rb);
gtk_table_attach_defaults (GTK_TABLE(t), x, 1, 2, row, row+1);
@@ -151,7 +151,7 @@ pan :: headers_dialog (Data& data, Prefs& prefs, Queue& queue,
state->n_headers_rb = w = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON(w), _("Get the _latest N headers: "));
gtk_button_set_alignment (GTK_BUTTON(w), 0.5, 0.0);
gtk_table_attach_defaults (GTK_TABLE(t), w, 0, 1, row, row+1);
- adj = GTK_ADJUSTMENT(gtk_adjustment_new (n_headers, 0, INT_MAX, 50, 50, 1));
+ adj = GTK_ADJUSTMENT(gtk_adjustment_new (n_headers, 0, INT_MAX, 50, 50, 0));
state->n_headers_spinbutton = x = gtk_spin_button_new (adj, 1, 0);
g_signal_connect (x, "focus_in_event", GTK_SIGNAL_FUNC(spin_tickled_cb), state->n_headers_rb);
gtk_table_attach_defaults (GTK_TABLE(t), x, 1, 2, row, row+1);
diff --git a/pan/gui/score-add-ui.cc b/pan/gui/score-add-ui.cc
index e469c9c..0479149 100644
--- a/pan/gui/score-add-ui.cc
+++ b/pan/gui/score-add-ui.cc
@@ -336,7 +336,7 @@ namespace
gtk_box_pack_start (GTK_BOX(h), entry, true, true, 0);
g_object_set_data (G_OBJECT(h), "entry", entry);
- GtkObject * a = gtk_adjustment_new (100, -ULONG_MAX, ULONG_MAX, 1.0, 1.0, 1.0);
+ GtkObject * a = gtk_adjustment_new (100, -ULONG_MAX, ULONG_MAX, 1.0, 1.0, 0.0);
GtkWidget * spin = setme_spin = gtk_spin_button_new (GTK_ADJUSTMENT(a), 100.0, 0u);
gtk_box_pack_start (GTK_BOX(h), spin, false, false, 0);
g_object_set_data (G_OBJECT(h), "spin", spin);
@@ -651,7 +651,7 @@ ScoreAddDialog :: ScoreAddDialog (Data & data,
w = _score_menu = value_combo_new (model);
g_object_unref (model);
gtk_box_pack_start (GTK_BOX(h), w, true, true, 0);
- GtkObject * a = gtk_adjustment_new (100, INT_MIN, INT_MAX, 1.0, 1.0, 1.0);
+ GtkObject * a = gtk_adjustment_new (100, INT_MIN, INT_MAX, 1.0, 1.0, 0.0);
w = _score_spin = gtk_spin_button_new (GTK_ADJUSTMENT(a), 100.0, 0u);
gtk_box_pack_start (GTK_BOX(h), w, true, true, 0);
HIG::workarea_add_wide_control (t, &row, h);
diff --git a/pan/gui/server-ui.cc b/pan/gui/server-ui.cc
index e17b611..8ff1097 100644
--- a/pan/gui/server-ui.cc
+++ b/pan/gui/server-ui.cc
@@ -231,7 +231,7 @@ pan :: server_edit_dialog_new (Data& data, Queue& queue, GtkWindow * window, con
gtk_tooltips_set_tip (GTK_TOOLTIPS(ttips), w, _("The news server's actual address, e.g. \"news.mynewsserver.com\""), NULL);
HIG::workarea_add_row (t, &row, _("_Address:"), w, NULL);
- GtkAdjustment * a = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 1.0, ULONG_MAX, 1.0, 1.0, 1.0));
+ GtkAdjustment * a = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 1.0, ULONG_MAX, 1.0, 1.0, 0.0));
w = d->port_spin = gtk_spin_button_new (GTK_ADJUSTMENT(a), 1.0, 0u);
gtk_tooltips_set_tip (GTK_TOOLTIPS(ttips), w, _("The news server's port number. Typically 119."), NULL);
HIG::workarea_add_row (t, &row, _("Por_t:"), w, NULL);
@@ -254,7 +254,7 @@ pan :: server_edit_dialog_new (Data& data, Queue& queue, GtkWindow * window, con
HIG::workarea_add_section_spacer (t, row, 2);
const int DEFAULT_MAX_PER_SERVER (4);
- a = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 0.0, DEFAULT_MAX_PER_SERVER, 1.0, 1.0, 1.0));
+ a = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 0.0, DEFAULT_MAX_PER_SERVER, 1.0, 1.0, 0.0));
d->connection_limit_spin = w = gtk_spin_button_new (GTK_ADJUSTMENT(a), 1.0, 0u);
HIG::workarea_add_row (t, &row, _("Connection _Limit:"), w, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]