aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-04 11:40:30 -0600
committerTed Gould <ted@gould.cx>2010-03-04 11:40:30 -0600
commit03519bdfa768c82f108c98de4ec73f99356308f1 (patch)
treec677c58987c4efa1d0024fd190a3a689e2962103 /src
parentd7ff9156733379b5dab62ba6aa26f573e886d54d (diff)
parentfa723603dce8e5fd24371b5358a4ea3bc9ed8bc0 (diff)
downloadlibayatana-appindicator-03519bdfa768c82f108c98de4ec73f99356308f1.tar.gz
libayatana-appindicator-03519bdfa768c82f108c98de4ec73f99356308f1.tar.bz2
libayatana-appindicator-03519bdfa768c82f108c98de4ec73f99356308f1.zip
* Upstream release 0.0.15
* Icon size fix to 22 px * Status icon correctly removed in fallback * Fixed test suite to run better on slow machines.
Diffstat (limited to 'src')
-rw-r--r--src/indicator-application.c14
-rw-r--r--src/libappindicator/app-indicator.c2
2 files changed, 10 insertions, 6 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c
index 170e0d4..d89874e 100644
--- a/src/indicator-application.c
+++ b/src/indicator-application.c
@@ -66,7 +66,6 @@ GType indicator_application_get_type (void);
INDICATOR_SET_VERSION
INDICATOR_SET_TYPE(INDICATOR_APPLICATION_TYPE)
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -90,6 +89,9 @@ struct _ApplicationEntry {
gchar * dbusaddress;
};
+#define DESIGN_TEAM_SIZE design_team_size
+static GtkIconSize design_team_size;
+
#define INDICATOR_APPLICATION_GET_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), INDICATOR_APPLICATION_TYPE, IndicatorApplicationPrivate))
@@ -144,6 +146,8 @@ indicator_application_class_init (IndicatorApplicationClass *klass)
G_TYPE_STRING,
G_TYPE_INVALID);
+ design_team_size = gtk_icon_size_register("design-team-size", 22, 22);
+
return;
}
@@ -449,9 +453,9 @@ application_added (DBusGProxy * proxy, const gchar * iconname, gint position, co
just use the name we were given. */
gchar * longname = g_strdup_printf("%s-%s", iconname, PANEL_ICON_SUFFIX);
if (gtk_icon_theme_has_icon(gtk_icon_theme_get_default(), longname)) {
- app->entry.image = GTK_IMAGE(gtk_image_new_from_icon_name(longname, GTK_ICON_SIZE_MENU));
+ app->entry.image = GTK_IMAGE(gtk_image_new_from_icon_name(longname, DESIGN_TEAM_SIZE));
} else {
- app->entry.image = GTK_IMAGE(gtk_image_new_from_icon_name(iconname, GTK_ICON_SIZE_MENU));
+ app->entry.image = GTK_IMAGE(gtk_image_new_from_icon_name(iconname, DESIGN_TEAM_SIZE));
}
g_free(longname);
@@ -532,10 +536,10 @@ application_icon_changed (DBusGProxy * proxy, gint position, const gchar * iconn
gchar * longname = g_strdup_printf("%s-%s", iconname, PANEL_ICON_SUFFIX);
if (gtk_icon_theme_has_icon(gtk_icon_theme_get_default(), longname)) {
g_debug("Setting icon on %d to %s", position, longname);
- gtk_image_set_from_icon_name(app->entry.image, longname, GTK_ICON_SIZE_MENU);
+ gtk_image_set_from_icon_name(app->entry.image, longname, DESIGN_TEAM_SIZE);
} else {
g_debug("Setting icon on %d to %s", position, iconname);
- gtk_image_set_from_icon_name(app->entry.image, iconname, GTK_ICON_SIZE_MENU);
+ gtk_image_set_from_icon_name(app->entry.image, iconname, DESIGN_TEAM_SIZE);
}
g_free(longname);
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index 1796e8e..ef9f5c0 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -895,7 +895,7 @@ unfallback (AppIndicator * self, GtkStatusIcon * status_icon)
{
g_signal_handlers_disconnect_by_func(G_OBJECT(self), status_icon_status_wrapper, status_icon);
g_signal_handlers_disconnect_by_func(G_OBJECT(self), status_icon_changes, status_icon);
- gtk_widget_hide(GTK_WIDGET(status_icon));
+ gtk_status_icon_set_visible(status_icon, FALSE);
g_object_unref(G_OBJECT(status_icon));
return;
}