diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-12-21 12:55:48 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2018-09-24 18:09:27 (EDT) |
commit | 5448e4bb073358c258ad9ad6e570123f32feac64 (patch) | |
tree | f39ef4494eb86d73c7c1e8edf5eeb4bad3f20047 | |
parent | 84ca766ea388de1d2ec2df7375b8a8948d348b4d (diff) | |
download | marquee-5448e4bb073358c258ad9ad6e570123f32feac64.zip marquee-5448e4bb073358c258ad9ad6e570123f32feac64.tar.gz marquee-5448e4bb073358c258ad9ad6e570123f32feac64.tar.bz2 |
[WIP] MqTabLabel: Rename tab on double click
-rw-r--r-- | src/tab-label.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tab-label.c b/src/tab-label.c index 134fc8a..3680078 100644 --- a/src/tab-label.c +++ b/src/tab-label.c @@ -231,8 +231,10 @@ static gboolean button_press_cb(GtkWidget *widget, GdkEventButton *event, MqTabLabel *tab_label) { - /* Create a popover menu on right click. */ - if (event->button == 2) { + if (event->type == GDK_2BUTTON_PRESS) { + mq_tab_page_set_title(tab_label->tab_page, "Renamed"); + set_title(tab_label, "Renamed"); + } else if (event->button == 2) { mq_tab_page_close(tab_label->tab_page); } else if (event->button == 3) { create_tab_popover(widget, tab_label); |