aboutsummaryrefslogtreecommitdiffstats
path: root/src/camorama-stock-items.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/camorama-stock-items.c')
-rw-r--r--src/camorama-stock-items.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/camorama-stock-items.c b/src/camorama-stock-items.c
deleted file mode 100644
index b88674c..0000000
--- a/src/camorama-stock-items.c
+++ /dev/null
@@ -1,52 +0,0 @@
-#include "camorama-stock-items.h"
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <glib/gi18n.h>
-#include "v4l.h"
-
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
-static GtkStockItem camorama_items[] = {
- {CAMORAMA_STOCK_WEBCAM, N_("Webcam"), 0, 0, "camorama"}
-};
-
-#pragma GCC diagnostic pop
-
-static void add_default_image(const gchar * stock_id, gint size,
- const gchar * pixfilename)
-{
- GdkPixbuf *buf = gdk_pixbuf_new_from_file(pixfilename, NULL);
-
- g_return_if_fail(buf);
-
- gtk_icon_theme_add_builtin_icon(stock_id, size, buf);
- g_object_unref(buf);
-}
-
-void camorama_stock_init(void)
-{
- GtkIconFactory *factory = gtk_icon_factory_new();
- GtkIconSet *set = gtk_icon_set_new();
- GtkIconSource *source = gtk_icon_source_new();
-
- gtk_stock_add_static(camorama_items, G_N_ELEMENTS(camorama_items));
-
- gtk_icon_source_set_size_wildcarded(source, TRUE);
- gtk_icon_source_set_direction_wildcarded(source, TRUE);
- gtk_icon_source_set_state_wildcarded(source, TRUE);
-
- gtk_icon_source_set_icon_name(source, CAMORAMA_STOCK_WEBCAM);
- gtk_icon_set_add_source(set, source);
-
- gtk_icon_factory_add(factory, CAMORAMA_STOCK_WEBCAM, set);
-
- add_default_image(CAMORAMA_STOCK_WEBCAM, 24, PACKAGE_DATA_DIR
- "/icons/hicolor/24x24/devices/camorama.png");
- gtk_icon_factory_add_default(factory);
-
- gtk_icon_set_unref(set);
- gtk_icon_source_free(source);
-}

Privacy Policy