From 68d7bf953cb11ea57d10ea5d99bcf2bafe1db5ed Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 3 Apr 2009 10:49:56 -0500 Subject: Trying to have more style information included so that we can get rid of the focus line. --- src/applet-main.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3 From c1955c5ca3f460f0ac8fc7de84325345b60b8919 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 7 Apr 2009 22:22:53 -0500 Subject: Added in an 'icon-name' to make the about dialog have a proper icon. --- src/applet-main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/applet-main.c b/src/applet-main.c index e08dc1e..310cfe9 100644 --- a/src/applet-main.c +++ b/src/applet-main.c @@ -150,6 +150,7 @@ about_cb (BonoboUIComponent *ui_container, "wrap-license", TRUE, "translator-credits", _("translator-credits"), "logo-icon-name", "indicator-applet", + "icon-name", "indicator-applet", "website", "http://launchpad.net/indicator-applet", "website-label", _("Indicator Applet Website"), NULL -- cgit v1.2.3