aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-04 17:14:23 -0500
committerTed Gould <ted@canonical.com>2009-09-04 17:14:23 -0500
commite16fd98511c81dceef2f063fe7a67f384713a8bc (patch)
treed01ff3ccd660a9263c6e69c6af7f1059c0eea3bc /src
parent486c49f150ed875ee1f39a002d6fe95efc7b208f (diff)
downloadayatana-indicator-messages-e16fd98511c81dceef2f063fe7a67f384713a8bc.tar.gz
ayatana-indicator-messages-e16fd98511c81dceef2f063fe7a67f384713a8bc.tar.bz2
ayatana-indicator-messages-e16fd98511c81dceef2f063fe7a67f384713a8bc.zip
Defining the max number of indicators and telling the server about it.
Diffstat (limited to 'src')
-rw-r--r--src/app-menu-item.c2
-rw-r--r--src/dbus-data.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index feb780d..ecb5b5d 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -27,6 +27,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <glib/gi18n.h>
#include <gio/gdesktopappinfo.h>
#include "app-menu-item.h"
+#include "dbus-data.h"
enum {
COUNT_CHANGED,
@@ -173,6 +174,7 @@ app_menu_item_new (IndicateListener * listener, IndicateListenerServer * server)
indicate_listener_server_show_interest(listener, server, INDICATE_INTEREST_SERVER_DISPLAY);
indicate_listener_server_show_interest(listener, server, INDICATE_INTEREST_SERVER_SIGNAL);
+ indicate_listener_set_server_max_indicators(listener, server, MAX_NUMBER_OF_INDICATORS);
return self;
}
diff --git a/src/dbus-data.h b/src/dbus-data.h
index 5ea4046..9f53f94 100644
--- a/src/dbus-data.h
+++ b/src/dbus-data.h
@@ -21,4 +21,6 @@
#define INDICATOR_MENUITEM_PROP_ICON "indicator-icon"
#define INDICATOR_MENUITEM_PROP_RIGHT "right-side-text"
+#define MAX_NUMBER_OF_INDICATORS 7
+
#endif /* __DBUS_DATA_H__ */