From 0bac7d9c5f443cecec79c748e63135e381d82e7c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 04 Nov 2017 15:39:33 -0400 Subject: MqMainMenu: Make profile button sensitive and effective --- 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"); -- cgit v0.9.1