summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2021-07-24 23:27:30 +0800
committerraveit65 <[email protected]>2021-07-28 18:02:51 +0200
commit814f67295ea86a7a33c673691714809b1580d7d2 (patch)
treefd52f3148579089874a3d20c25a43b04f1b18b40 /libslab
parent71c7563e708128f80d6d60447cdb0430c5414626 (diff)
downloadmate-control-center-814f67295ea86a7a33c673691714809b1580d7d2.tar.bz2
mate-control-center-814f67295ea86a7a33c673691714809b1580d7d2.tar.xz
Remove useless and discarded gtk_button_released
Diffstat (limited to 'libslab')
-rw-r--r--libslab/tile.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libslab/tile.c b/libslab/tile.c
index c2f632ca..96ff2120 100644
--- a/libslab/tile.c
+++ b/libslab/tile.c
@@ -307,14 +307,16 @@ static void
tile_clicked (GtkButton * widget)
{
TileEvent *tile_event;
+ GdkEvent *event;
+ gboolean handled;
tile_event = g_new0 (TileEvent, 1);
tile_event->type = TILE_EVENT_ACTIVATED_DOUBLE_CLICK;
tile_event->time = gtk_get_current_event_time ();
g_signal_emit (widget, tile_signals[TILE_ACTIVATED_SIGNAL], 0, tile_event);
+ g_signal_emit_by_name (widget, "button-release-event", &event, &handled);
- gtk_button_released (widget);
g_free (tile_event);
}
@@ -363,6 +365,7 @@ tile_button_release (GtkWidget * widget, GdkEventButton * event)
TilePrivate *priv = tile_get_instance_private (tile);
TileEvent *tile_event;
+ gboolean handled;
if (priv->is_dragging)
{
@@ -384,8 +387,8 @@ tile_button_release (GtkWidget * widget, GdkEventButton * event)
tile_event->type = TILE_EVENT_ACTIVATED_SINGLE_CLICK;
g_signal_emit (tile, tile_signals[TILE_ACTIVATED_SIGNAL], 0, tile_event);
+ g_signal_emit_by_name (GTK_BUTTON (widget), "button-release-event", &event, &handled);
- gtk_button_released (GTK_BUTTON (widget));
g_free (tile_event);
break;