Avoid deprecated function: gtk_button_released 20121009030508/pspp 20121011030511/pspp 20121012030514/pspp 20121013030514/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 8 Oct 2012 17:16:02 +0000 (19:16 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 8 Oct 2012 17:16:02 +0000 (19:16 +0200)
src/ui/gui/psppire-button-editable.c

index 2e6335053fb06279750273b86dd678fa45ab1843..f7028f5f5b5659de58d876c9bdcb95d13927e960 100644 (file)
@@ -108,12 +108,9 @@ static gboolean
 psppire_button_editable_button_release (GtkWidget      *widget,
                                         GdkEventButton *event)
 {
-  GtkButton *button;
-
   if (event->button == 1)
     {
-      button = GTK_BUTTON (widget);
-      gtk_button_released (button);
+      g_signal_emit_by_name (widget, "button-release-event", event, NULL);
     }
 
   return TRUE;
@@ -222,15 +219,11 @@ gtk_cell_editable_interface_init (GtkCellEditableIface *iface)
 static void
 button_editable_editing_done (GtkCellEditable *cell_editable)
 {
-
-
 }
 
 static void
 button_editable_remove_widget (GtkCellEditable *cell_editable)
 {
-
-
 }
 
 static void