From: John Darrington Date: Mon, 8 Oct 2012 17:16:02 +0000 (+0200) Subject: Avoid deprecated function: gtk_button_released X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fbuilds%2F20121011030511%2Fpspp;p=pspp Avoid deprecated function: gtk_button_released --- diff --git a/src/ui/gui/psppire-button-editable.c b/src/ui/gui/psppire-button-editable.c index 2e6335053f..f7028f5f5b 100644 --- a/src/ui/gui/psppire-button-editable.c +++ b/src/ui/gui/psppire-button-editable.c @@ -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