Commit 426cbcfb authored by Jeff Garzik's avatar Jeff Garzik
Browse files

Renamed deprecated Gtk+ functions.

parent 9df5bc2e
1999-01-19 Jeff Garzik <jgarzik@pobox.com>
* src/dialog-cell-format.c, src/gnumeric-util.c,
src/sheet-view.c, src/workbook.c:
Renamed deprecated Gtk+ functions.
1999-01-18 Bruno Unna <bruno@iac.com.mx>
* src/dialog-cell-format.c: Now the terminator element of the
......
1999-01-19 Jeff Garzik <jgarzik@pobox.com>
* src/dialog-cell-format.c, src/gnumeric-util.c,
src/sheet-view.c, src/workbook.c:
Renamed deprecated Gtk+ functions.
1999-01-18 Bruno Unna <bruno@iac.com.mx>
* src/dialog-cell-format.c: Now the terminator element of the
......
1999-01-19 Jeff Garzik <jgarzik@pobox.com>
* src/dialog-cell-format.c, src/gnumeric-util.c,
src/sheet-view.c, src/workbook.c:
Renamed deprecated Gtk+ functions.
1999-01-18 Bruno Unna <bruno@iac.com.mx>
* src/dialog-cell-format.c: Now the terminator element of the
......
1999-01-19 Jeff Garzik <jgarzik@pobox.com>
* src/dialog-cell-format.c, src/gnumeric-util.c,
src/sheet-view.c, src/workbook.c:
Renamed deprecated Gtk+ functions.
1999-01-18 Bruno Unna <bruno@iac.com.mx>
* src/dialog-cell-format.c: Now the terminator element of the
......
......@@ -141,7 +141,7 @@ static void
render_formated_version (char *format)
{
if (!first_cell)
gtk_label_set (GTK_LABEL (number_sample), "");
gtk_label_set_text (GTK_LABEL (number_sample), "");
else {
StyleFormat *style_format;
Value *v = first_cell->value;
......@@ -150,7 +150,7 @@ render_formated_version (char *format)
style_format = style_format_new (format);
str = format_value (style_format, v, NULL);
gtk_label_set (GTK_LABEL (number_sample), str);
gtk_label_set_text (GTK_LABEL (number_sample), str);
g_free (str);
style_format_unref (style_format);
}
......@@ -469,7 +469,7 @@ create_align_page (GtkWidget *prop_win, CellList *cells)
}
if (autor)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (auto_return), 1);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (auto_return), 1);
}
}
......@@ -625,7 +625,7 @@ create_background_radio (GtkWidget *prop_win)
frame = gtk_frame_new (_("Background configuration"));
table = gtk_table_new (2, 2, 0);
gtk_container_add (GTK_CONTAINER (frame), table);
gtk_container_border_width (GTK_CONTAINER (frame), 5);
gtk_container_set_border_width (GTK_CONTAINER (frame), 5);
/* The radio buttons */
r1 = gtk_radio_button_new_with_label (NULL, _("None"));
......@@ -776,7 +776,7 @@ cell_properties_close (void)
GnomePropertyBox *pbox = GNOME_PROPERTY_BOX (cell_format_prop_win);
gtk_main_quit ();
cell_format_last_page_used = gtk_notebook_current_page (
cell_format_last_page_used = gtk_notebook_get_current_page (
GTK_NOTEBOOK (pbox->notebook));
gtk_widget_destroy (cell_format_prop_win);
cell_format_prop_win = 0;
......
......@@ -141,7 +141,7 @@ static void
render_formated_version (char *format)
{
if (!first_cell)
gtk_label_set (GTK_LABEL (number_sample), "");
gtk_label_set_text (GTK_LABEL (number_sample), "");
else {
StyleFormat *style_format;
Value *v = first_cell->value;
......@@ -150,7 +150,7 @@ render_formated_version (char *format)
style_format = style_format_new (format);
str = format_value (style_format, v, NULL);
gtk_label_set (GTK_LABEL (number_sample), str);
gtk_label_set_text (GTK_LABEL (number_sample), str);
g_free (str);
style_format_unref (style_format);
}
......@@ -469,7 +469,7 @@ create_align_page (GtkWidget *prop_win, CellList *cells)
}
if (autor)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (auto_return), 1);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (auto_return), 1);
}
}
......@@ -625,7 +625,7 @@ create_background_radio (GtkWidget *prop_win)
frame = gtk_frame_new (_("Background configuration"));
table = gtk_table_new (2, 2, 0);
gtk_container_add (GTK_CONTAINER (frame), table);
gtk_container_border_width (GTK_CONTAINER (frame), 5);
gtk_container_set_border_width (GTK_CONTAINER (frame), 5);
/* The radio buttons */
r1 = gtk_radio_button_new_with_label (NULL, _("None"));
......@@ -776,7 +776,7 @@ cell_properties_close (void)
GnomePropertyBox *pbox = GNOME_PROPERTY_BOX (cell_format_prop_win);
gtk_main_quit ();
cell_format_last_page_used = gtk_notebook_current_page (
cell_format_last_page_used = gtk_notebook_get_current_page (
GTK_NOTEBOOK (pbox->notebook));
gtk_widget_destroy (cell_format_prop_win);
cell_format_prop_win = 0;
......
......@@ -53,7 +53,7 @@ gtk_radio_button_select (GSList *group, int n)
int len = g_slist_length (group);
l = g_slist_nth (group, len - n - 1);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (l->data), 1);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (l->data), 1);
}
static void
......
......@@ -53,7 +53,7 @@ gtk_radio_button_select (GSList *group, int n)
int len = g_slist_length (group);
l = g_slist_nth (group, len - n - 1);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (l->data), 1);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (l->data), 1);
}
static void
......
......@@ -326,7 +326,7 @@ set_tip_label (SheetView *sheet_view, char *format, GtkAdjustment *adj, int hori
else
snprintf (buffer, sizeof (buffer), format, (int) adj->value + 1);
gtk_label_set (GTK_LABEL (sheet_view->tip), buffer);
gtk_label_set_text (GTK_LABEL (sheet_view->tip), buffer);
}
static void
......
......@@ -326,7 +326,7 @@ set_tip_label (SheetView *sheet_view, char *format, GtkAdjustment *adj, int hori
else
snprintf (buffer, sizeof (buffer), format, (int) adj->value + 1);
gtk_label_set (GTK_LABEL (sheet_view->tip), buffer);
gtk_label_set_text (GTK_LABEL (sheet_view->tip), buffer);
}
static void
......
......@@ -298,7 +298,7 @@ cb_sheet_check_dirty (gpointer key, gpointer value, gpointer user_data)
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG(d)->vbox), l, TRUE, TRUE, 0);
gtk_window_position (GTK_WINDOW (d), GTK_WIN_POS_MOUSE);
gtk_window_set_position (GTK_WINDOW (d), GTK_WIN_POS_MOUSE);
button = gnome_dialog_run (GNOME_DIALOG (d));
switch (button){
......@@ -1531,7 +1531,7 @@ workbook_feedback_set (Workbook *workbook, WorkbookFeedbackType type, void *data
workbook_toolbar [TOOLBAR_BOLD_BUTTON_INDEX].widget);
set = data != NULL;
gtk_toggle_button_set_state (t, set);
gtk_toggle_button_set_active (t, set);
break;
case WORKBOOK_FEEDBACK_ITALIC:
......@@ -1539,7 +1539,7 @@ workbook_feedback_set (Workbook *workbook, WorkbookFeedbackType type, void *data
workbook_toolbar [TOOLBAR_ITALIC_BUTTON_INDEX].widget);
set = data != NULL;
gtk_toggle_button_set_state (t, set);
gtk_toggle_button_set_active (t, set);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment