diff options
author | Ted Gould <ted@canonical.com> | 2009-04-03 10:49:56 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-04-03 10:49:56 -0500 |
commit | 68d7bf953cb11ea57d10ea5d99bcf2bafe1db5ed (patch) | |
tree | fdd8198a38d5c903e9235a0cb1bb7f587c2eba5d /src | |
parent | 16abe6d51d92d3b2ec9bd7899705a1a636ec2f74 (diff) | |
download | libayatana-indicator-68d7bf953cb11ea57d10ea5d99bcf2bafe1db5ed.tar.gz libayatana-indicator-68d7bf953cb11ea57d10ea5d99bcf2bafe1db5ed.tar.bz2 libayatana-indicator-68d7bf953cb11ea57d10ea5d99bcf2bafe1db5ed.zip |
Trying to have more style information included so that we can get rid of the focus line.
Diffstat (limited to 'src')
-rw-r--r-- | src/applet-main.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/applet-main.c b/src/applet-main.c index fdd7a23..e08dc1e 100644 --- a/src/applet-main.c +++ b/src/applet-main.c @@ -213,13 +213,30 @@ applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data) " GtkWidget::focus-line-width = 0\n" " GtkWidget::focus-padding = 0\n" "}\n" - "widget \"*.fast-user-switch-applet\" style \"indicator-applet-style\""); + "style \"indicator-applet-menubar-style\"\n" + "{\n" + " GtkMenuBar::shadow-type = none\n" + " GtkMenuBar::internal-padding = 0\n" + " GtkWidget::focus-line-width = 0\n" + " GtkWidget::focus-padding = 0\n" + " GtkMenuItem::horizontal-padding = 0\n" + "}\n" + "style \"indicator-applet-menuitem-style\"\n" + "{\n" + " GtkWidget::focus-line-width = 0\n" + " GtkWidget::focus-padding = 0\n" + " GtkMenuItem::horizontal-padding = 0\n" + "}\n" + "widget \"*.fast-user-switch-applet\" style \"indicator-applet-style\"" + "widget \"*.fast-user-switch-menuitem\" style \"indicator-applet-menuitem-style\"" + "widget \"*.fast-user-switch-menubar\" style \"indicator-applet-menubar-style\""); //gtk_widget_set_name(GTK_WIDGET (applet), "indicator-applet-menubar"); gtk_widget_set_name(GTK_WIDGET (applet), "fast-user-switch-applet"); /* Build menubar */ menubar = gtk_menu_bar_new(); GTK_WIDGET_SET_FLAGS (menubar, GTK_WIDGET_FLAGS(menubar) | GTK_CAN_FOCUS); + gtk_widget_set_name(GTK_WIDGET (menubar), "fast-user-switch-menubar"); g_signal_connect(menubar, "button-press-event", G_CALLBACK(menubar_press), NULL); g_signal_connect_after(menubar, "expose-event", G_CALLBACK(menubar_on_expose), menubar); gtk_container_set_border_width(GTK_CONTAINER(menubar), 0); |