Mail Archives: geda-user/2014/10/14/16:18:12
Verbatim from Gtk+ 2 Reference Manual: "gtk_timeout_add has been
deprecated since version 2.4 and should not be used in newly-written
code. Use g_timeout_add() instead."
---
gattrib/src/gtksheet_2_2.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gattrib/src/gtksheet_2_2.c b/gattrib/src/gtksheet_2_2.c
index 92fbffe..5a1edc3 100644
--- a/gattrib/src/gtksheet_2_2.c
+++ b/gattrib/src/gtksheet_2_2.c
@@ -2122,7 +2122,7 @@ gtk_sheet_clip_range (GtkSheet *sheet, const GtkSheetRange *range)
sheet->clip_range=*range;
sheet->interval=0;
- sheet->clip_timer=gtk_timeout_add(TIMEOUT_FLASH, gtk_sheet_flash, sheet);
+ sheet->clip_timer=g_timeout_add(TIMEOUT_FLASH, gtk_sheet_flash, sheet);
gtk_signal_emit(GTK_OBJECT(sheet), sheet_signals[CLIP_RANGE],
&sheet->clip_range);
@@ -4858,7 +4858,7 @@ gtk_sheet_button_press (GtkWidget * widget,
GDK_BUTTON_RELEASE_MASK,
NULL, NULL, event->time);
gtk_grab_add(GTK_WIDGET(sheet));
- sheet->timer=gtk_timeout_add(TIMEOUT_SCROLL, gtk_sheet_scroll, sheet);
+ sheet->timer=g_timeout_add(TIMEOUT_SCROLL, gtk_sheet_scroll, sheet);
GTK_WIDGET_UNSET_FLAGS(sheet->sheet_entry, GTK_HAS_FOCUS);
GTK_WIDGET_SET_FLAGS(GTK_SHEET(sheet), GTK_HAS_FOCUS);
gtk_widget_grab_focus(GTK_WIDGET(sheet));
@@ -4924,7 +4924,7 @@ gtk_sheet_button_press (GtkWidget * widget,
if(sheet->column[column].is_sensitive){;
gtk_sheet_click_cell(sheet, -1, column, &veto);
gtk_grab_add(GTK_WIDGET(sheet));
- sheet->timer=gtk_timeout_add(TIMEOUT_SCROLL, gtk_sheet_scroll, sheet);
+ sheet->timer=g_timeout_add(TIMEOUT_SCROLL, gtk_sheet_scroll, sheet);
GTK_WIDGET_UNSET_FLAGS(sheet->sheet_entry, GTK_HAS_FOCUS);
GTK_WIDGET_SET_FLAGS(GTK_SHEET(sheet), GTK_HAS_FOCUS);
gtk_widget_grab_focus(GTK_WIDGET(sheet));
@@ -4938,7 +4938,7 @@ gtk_sheet_button_press (GtkWidget * widget,
if(sheet->row[row].is_sensitive){
gtk_sheet_click_cell(sheet, row, -1, &veto);
gtk_grab_add(GTK_WIDGET(sheet));
- sheet->timer=gtk_timeout_add(TIMEOUT_SCROLL, gtk_sheet_scroll, sheet);
+ sheet->timer=g_timeout_add(TIMEOUT_SCROLL, gtk_sheet_scroll, sheet);
GTK_WIDGET_UNSET_FLAGS(sheet->sheet_entry, GTK_HAS_FOCUS);
GTK_WIDGET_SET_FLAGS(GTK_SHEET(sheet), GTK_HAS_FOCUS);
gtk_widget_grab_focus(GTK_WIDGET(sheet));
--
2.1.0
- Raw text -