diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-04 15:39:33 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-04 15:42:01 (EDT) |
commit | 0bac7d9c5f443cecec79c748e63135e381d82e7c (patch) | |
tree | c323ae4f585c8566f2162b3aca82a880e8c65334 | |
parent | db3adb8098bc5fda5eb8719c6a6c6722174b642e (diff) | |
download | marquee-0bac7d9c5f443cecec79c748e63135e381d82e7c.zip marquee-0bac7d9c5f443cecec79c748e63135e381d82e7c.tar.gz marquee-0bac7d9c5f443cecec79c748e63135e381d82e7c.tar.bz2 |
MqMainMenu: Make profile button sensitive and effective
-rw-r--r-- | src/toolbars/navigation/main-menu.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c index 93e045e..6d875ad 100644 --- a/src/toolbars/navigation/main-menu.c +++ b/src/toolbars/navigation/main-menu.c @@ -152,7 +152,13 @@ static void profile_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu G_GNUC_UNUSED *main_menu) { - /* TODO */ + gtk_widget_hide(main_menu->popover); + mq_notebook_insert_sibling( + MQ_NOTEBOOK(gtk_widget_get_parent( + GTK_WIDGET(main_menu->tab_page))), + "about:profiles", + main_menu->tab_page, + TRUE); } static void @@ -363,7 +369,6 @@ create_profile_buttons(MqMainMenu *main_menu) gtk_button_set_image(GTK_BUTTON(profile_button), gtk_image_new_from_pixbuf( mq_profile_icon_new_pixbuf("#0000ff"))); - gtk_widget_set_sensitive(profile_button, FALSE); /* ID, ICON, LABEL, TOOLTIP */ NEW_BUTTON(preferences, "preferences-desktop", NULL, "Preferences"); |