[bijiben/wip/sadiq/modernize: 4/5] main-toolbar: Don't handle window drag
- From: Mohammed Sadiq <pksadiq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben/wip/sadiq/modernize: 4/5] main-toolbar: Don't handle window drag
- Date: Mon, 18 Dec 2017 06:32:44 +0000 (UTC)
commit 8ea408e92a120cdbc81a3aa3b5372308756ac906
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Wed Dec 13 10:14:13 2017 +0530
main-toolbar: Don't handle window drag
Dragging window by clicking GtkHeaderBar is done by default.
Don't redo it.
https://bugzilla.gnome.org/show_bug.cgi?id=789696
src/bjb-main-toolbar.c | 21 ---------------------
1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/src/bjb-main-toolbar.c b/src/bjb-main-toolbar.c
index 4f92fcb..2c877c4 100644
--- a/src/bjb-main-toolbar.c
+++ b/src/bjb-main-toolbar.c
@@ -217,26 +217,6 @@ on_view_mode_clicked (GtkWidget *button, BjbMainToolbar *self)
return TRUE;
}
-/* Just makes toolbar draggable */
-static gboolean
-on_button_press (GtkWidget* widget,
- GdkEventButton * event,
- GdkWindowEdge edge)
-{
- if (event->type == GDK_BUTTON_PRESS)
- {
- if (event->button == 1) {
- gtk_window_begin_move_drag (GTK_WINDOW (gtk_widget_get_toplevel (widget)),
- event->button,
- event->x_root,
- event->y_root,
- event->time);
- }
- }
-
- return FALSE;
-}
-
static void
add_search_button (BjbMainToolbar *self)
{
@@ -1041,7 +1021,6 @@ static void
bjb_main_toolbar_init (BjbMainToolbar *self)
{
self->type = BJB_TOOLBAR_0;
- g_signal_connect (self, "button-press-event", G_CALLBACK (on_button_press), NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]