From 636b9f97d012198242832a74ac70a471098a66c8 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 10 Mar 2010 11:45:53 -0600 Subject: Adding in an image helper library. --- .bzrignore | 1 + libindicator/Makefile.am | 2 ++ libindicator/indicator-image-helper.c | 12 ++++++++++++ libindicator/indicator-image-helper.h | 31 +++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 libindicator/indicator-image-helper.c create mode 100644 libindicator/indicator-image-helper.h 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 + +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 +. +*/ + +#ifndef __INDICATOR_IMAGE_HELPER_H__ +#define __INDICATOR_IMAGE_HELPER_H__ + +#include + +GtkImage * indicator_image_helper (const gchar * name); + +#endif /* __INDICATOR_IMAGE_HELPER_H__ */ -- cgit v1.2.3