aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-10 11:45:53 -0600
committerTed Gould <ted@gould.cx>2010-03-10 11:45:53 -0600
commit636b9f97d012198242832a74ac70a471098a66c8 (patch)
treed9a61647073e9414dda8d17d1129a665b90ced8b
parent8e12685bab175ee6d494d7545c5c4187385e41eb (diff)
downloadlibayatana-indicator-636b9f97d012198242832a74ac70a471098a66c8.tar.gz
libayatana-indicator-636b9f97d012198242832a74ac70a471098a66c8.tar.bz2
libayatana-indicator-636b9f97d012198242832a74ac70a471098a66c8.zip
Adding in an image helper library.
-rw-r--r--.bzrignore1
-rw-r--r--libindicator/Makefile.am2
-rw-r--r--libindicator/indicator-image-helper.c12
-rw-r--r--libindicator/indicator-image-helper.h31
4 files changed, 46 insertions, 0 deletions
diff --git a/.bzrignore b/.bzrignore
index 5d1c40e..38d60ed 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -151,3 +151,4 @@ libindicator/libindicator_la-indicator-desktop-shortcuts.lo
tests/test-desktop-shortcuts
tests/test-desktop-shortcuts-tester
tests/test-desktop-shortcuts-touch-test
+libindicator/libindicator_la-indicator-image-helper.lo
diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am
index 467e09a..890160c 100644
--- a/libindicator/Makefile.am
+++ b/libindicator/Makefile.am
@@ -11,6 +11,7 @@ libindicatorincludedir=$(includedir)/libindicator-0.3/libindicator
indicator_headers = \
indicator.h \
indicator-desktop-shortcuts.h \
+ indicator-image-helper.h \
indicator-object.h \
indicator-service.h \
indicator-service-manager.h
@@ -26,6 +27,7 @@ libindicator_la_SOURCES = \
dbus-shared.h \
indicator-object.c \
indicator-desktop-shortcuts.c \
+ indicator-image-helper.c \
indicator-object-marshal.h \
indicator-object-marshal.c \
indicator-service.c \
diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c
new file mode 100644
index 0000000..9d487fd
--- /dev/null
+++ b/libindicator/indicator-image-helper.c
@@ -0,0 +1,12 @@
+
+#include "indicator-image-helper.h"
+
+GtkImage *
+indicator_image_helper (const gchar * name)
+{
+ g_return_val_if_fail(name != NULL, NULL);
+ g_return_val_if_fail(name[0] != '\0', NULL);
+
+
+ return NULL;
+}
diff --git a/libindicator/indicator-image-helper.h b/libindicator/indicator-image-helper.h
new file mode 100644
index 0000000..fed02dc
--- /dev/null
+++ b/libindicator/indicator-image-helper.h
@@ -0,0 +1,31 @@
+/*
+A little helper to make a themed image with fallbacks that
+is only constrained in the vertical dimention.
+
+Copyright 2010 Canonical Ltd.
+
+Authors:
+ Ted Gould <ted@canonical.com>
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+version 3.0 as published by the Free Software Foundation.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License version 3.0 for more details.
+
+You should have received a copy of the GNU General Public
+License along with this library. If not, see
+<http://www.gnu.org/licenses/>.
+*/
+
+#ifndef __INDICATOR_IMAGE_HELPER_H__
+#define __INDICATOR_IMAGE_HELPER_H__
+
+#include <gtk/gtk.h>
+
+GtkImage * indicator_image_helper (const gchar * name);
+
+#endif /* __INDICATOR_IMAGE_HELPER_H__ */