Mail Archives: geda-user/2014/10/14/16:19:07
Verbatim from Gtk+ 2 Reference Manual: "gtk_signal_emit_by_name is
deprecated and should not be used in newly-written code. Use
g_signal_emit_by_name() instead."
---
gattrib/src/gtksheet_2_2.c | 63 +++++++++++++++++-----------------------------
1 file changed, 23 insertions(+), 40 deletions(-)
diff --git a/gattrib/src/gtksheet_2_2.c b/gattrib/src/gtksheet_2_2.c
index cfcdad0..09bf8fa 100644
--- a/gattrib/src/gtksheet_2_2.c
+++ b/gattrib/src/gtksheet_2_2.c
@@ -1360,11 +1360,9 @@ gtk_sheet_thaw(GtkSheet *sheet)
sheet->old_hadjustment = -1.;
if(sheet->hadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->hadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->hadjustment, "value_changed");
if(sheet->vadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->vadjustment, "value_changed");
if(sheet->state == GTK_STATE_NORMAL)
if(sheet->sheet_entry && gtk_widget_get_mapped(sheet->sheet_entry)){
@@ -1394,8 +1392,7 @@ gtk_sheet_set_row_titles_width(GtkSheet *sheet, guint width)
sheet->old_hadjustment = -1.;
if(sheet->hadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->hadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->hadjustment, "value_changed");
size_allocate_global_button(sheet);
}
@@ -1413,7 +1410,7 @@ gtk_sheet_set_column_titles_height(GtkSheet *sheet, guint height)
sheet->old_vadjustment = -1.;
if(sheet->vadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment),
+ g_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment),
"value_changed");
size_allocate_global_button(sheet);
}
@@ -1448,8 +1445,7 @@ gtk_sheet_show_column_titles(GtkSheet *sheet)
sheet->old_vadjustment = -1.;
if(sheet->vadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->vadjustment, "value_changed");
size_allocate_global_button(sheet);
}
@@ -1483,8 +1479,7 @@ gtk_sheet_show_row_titles(GtkSheet *sheet)
sheet->old_hadjustment = -1.;
if(sheet->hadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->hadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->hadjustment, "value_changed");
size_allocate_global_button(sheet);
}
@@ -1516,8 +1511,7 @@ gtk_sheet_hide_column_titles(GtkSheet *sheet)
sheet->old_vadjustment = -1.;
if(sheet->vadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->vadjustment, "value_changed");
}
void
@@ -1547,8 +1541,7 @@ gtk_sheet_hide_row_titles(GtkSheet *sheet)
sheet->old_hadjustment = -1.;
if(sheet->hadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->hadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->hadjustment, "value_changed");
}
gboolean
@@ -1858,8 +1851,7 @@ gtk_sheet_moveto (GtkSheet * sheet,
sheet->vadjustment->value = y;
sheet->old_vadjustment = -1.;
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->vadjustment, "value_changed");
}
@@ -1893,8 +1885,7 @@ gtk_sheet_moveto (GtkSheet * sheet,
sheet->hadjustment->value = x;
sheet->old_vadjustment = -1.;
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->hadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->hadjustment, "value_changed");
}
}
@@ -5074,7 +5065,7 @@ gtk_sheet_button_release (GtkWidget * widget,
gtk_sheet_set_column_width (sheet, sheet->drag_cell.col, new_column_width (sheet, sheet->drag_cell.col, &x));
sheet->old_hadjustment = -1.;
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->hadjustment), "value_changed");
+ g_signal_emit_by_name (sheet->hadjustment, "value_changed");
return TRUE;
}
@@ -5087,7 +5078,7 @@ gtk_sheet_button_release (GtkWidget * widget,
gtk_sheet_set_row_height (sheet, sheet->drag_cell.row, new_row_height (sheet, sheet->drag_cell.row, &y));
sheet->old_vadjustment = -1.;
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment), "value_changed");
+ g_signal_emit_by_name (sheet->vadjustment, "value_changed");
return TRUE;
}
@@ -5505,7 +5496,7 @@ gtk_sheet_entry_key_press(GtkWidget *widget,
printf("Entered gtk_sheet_entry_key_press. . . . . \n");
#endif
- gtk_signal_emit_by_name(GTK_OBJECT(widget), "key_press_event", key, &focus);
+ gtk_signal_emit_by_name(widget, "key_press_event", key, &focus);
return focus;
}
#endif
@@ -6543,11 +6534,10 @@ adjust_scrollbars (GtkSheet * sheet)
{
sheet->vadjustment->value = MAX(0, SHEET_HEIGHT (sheet) -
sheet->sheet_window_height);
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->vadjustment, "value_changed");
}
*/
- gtk_signal_emit_by_name (GTK_OBJECT(sheet->vadjustment), "changed");
+ g_signal_emit_by_name (sheet->vadjustment, "changed");
}
@@ -6562,11 +6552,10 @@ adjust_scrollbars (GtkSheet * sheet)
{
sheet->hadjustment->value = MAX(0, SHEET_WIDTH (sheet) -
sheet->sheet_window_width);
- gtk_signal_emit_by_name (GTK_OBJECT(sheet->hadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->hadjustment, "value_changed");
}
*/
- gtk_signal_emit_by_name (GTK_OBJECT(sheet->hadjustment), "changed");
+ g_signal_emit_by_name (sheet->hadjustment, "changed");
}
/*
@@ -7052,8 +7041,7 @@ gtk_sheet_add_column(GtkSheet *sheet, guint ncols)
sheet->old_hadjustment = -1.;
if(!GTK_SHEET_IS_FROZEN(sheet) && sheet->hadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->hadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->hadjustment, "value_changed");
}
void
@@ -7073,8 +7061,7 @@ gtk_sheet_add_row(GtkSheet *sheet, guint nrows)
sheet->old_vadjustment = -1.;
if(!GTK_SHEET_IS_FROZEN(sheet) && sheet->vadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->vadjustment, "value_changed");
}
void
@@ -7109,8 +7096,7 @@ gtk_sheet_insert_rows(GtkSheet *sheet, guint row, guint nrows)
sheet->old_vadjustment = -1.;
if(!GTK_SHEET_IS_FROZEN(sheet) && sheet->vadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->vadjustment, "value_changed");
}
@@ -7146,8 +7132,7 @@ gtk_sheet_insert_columns(GtkSheet *sheet, guint col, guint ncols)
sheet->old_hadjustment = -1.;
if(!GTK_SHEET_IS_FROZEN(sheet) && sheet->hadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->hadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->hadjustment, "value_changed");
}
@@ -7213,8 +7198,7 @@ gtk_sheet_delete_rows(GtkSheet *sheet, guint row, guint nrows)
sheet->old_vadjustment = -1.;
if(!GTK_SHEET_IS_FROZEN(sheet) && sheet->vadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->vadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->vadjustment, "value_changed");
}
@@ -7280,8 +7264,7 @@ gtk_sheet_delete_columns(GtkSheet *sheet, guint col, guint ncols)
sheet->old_hadjustment = -1.;
if(!GTK_SHEET_IS_FROZEN(sheet) && sheet->hadjustment)
- gtk_signal_emit_by_name (GTK_OBJECT (sheet->hadjustment),
- "value_changed");
+ g_signal_emit_by_name (sheet->hadjustment, "value_changed");
}
--
2.1.0
- Raw text -