]> git.sur5r.net Git - glabels/commitdiff
Theme friendly, glabels specific, action icons.
authorJim Evins <evins@snaught.com>
Mon, 6 Sep 2010 00:40:45 +0000 (20:40 -0400)
committerJim Evins <evins@snaught.com>
Mon, 6 Sep 2010 00:40:45 +0000 (20:40 -0400)
96 files changed:
configure.ac
data/icons/16x16/Makefile.am
data/icons/16x16/actions/glabels-align-bottom.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-align-hcenter.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-align-left.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-align-right.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-align-top.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-align-vcenter.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-arrow.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-barcode.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-box.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-bucket-fill.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-center-horiz.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-center-vert.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-ellipse.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-flip-horiz.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-flip-vert.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-image.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-line.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-merge.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-object-properties.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-order-bottom.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-order-top.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-pencil.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-rotate-left.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-rotate-right.png [new file with mode: 0644]
data/icons/16x16/actions/glabels-text.png [new file with mode: 0644]
data/icons/24x24/Makefile.am
data/icons/24x24/actions/glabels-arrow.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-barcode.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-box.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-bucket-fill.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-ellipse.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-hchain-broken.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-hchain.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-image.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-line.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-merge.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-object-properties.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-pencil.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-text.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-vchain-broken.png [new file with mode: 0644]
data/icons/24x24/actions/glabels-vchain.png [new file with mode: 0644]
po/POTFILES.in
src/Makefile.am
src/color-combo-button.c
src/color-combo-button.h
src/glabels.c
src/object-editor.c
src/stock-pixmaps/Makefile.am [deleted file]
src/stock-pixmaps/stock_align_bottom_16.png [deleted file]
src/stock-pixmaps/stock_align_hcenter_16.png [deleted file]
src/stock-pixmaps/stock_align_left_16.png [deleted file]
src/stock-pixmaps/stock_align_right_16.png [deleted file]
src/stock-pixmaps/stock_align_top_16.png [deleted file]
src/stock-pixmaps/stock_align_vcenter_16.png [deleted file]
src/stock-pixmaps/stock_arrow_16.png [deleted file]
src/stock-pixmaps/stock_arrow_24.png [deleted file]
src/stock-pixmaps/stock_barcode_16.png [deleted file]
src/stock-pixmaps/stock_barcode_24.png [deleted file]
src/stock-pixmaps/stock_box_16.png [deleted file]
src/stock-pixmaps/stock_box_24.png [deleted file]
src/stock-pixmaps/stock_bucket_fill_16.png [deleted file]
src/stock-pixmaps/stock_bucket_fill_24.png [deleted file]
src/stock-pixmaps/stock_center_horiz_16.png [deleted file]
src/stock-pixmaps/stock_center_vert_16.png [deleted file]
src/stock-pixmaps/stock_ellipse_16.png [deleted file]
src/stock-pixmaps/stock_ellipse_24.png [deleted file]
src/stock-pixmaps/stock_flip_horiz_16.png [deleted file]
src/stock-pixmaps/stock_flip_vert_16.png [deleted file]
src/stock-pixmaps/stock_hchain_24.png [deleted file]
src/stock-pixmaps/stock_hchain_broken_24.png [deleted file]
src/stock-pixmaps/stock_image_16.png [deleted file]
src/stock-pixmaps/stock_image_24.png [deleted file]
src/stock-pixmaps/stock_line_16.png [deleted file]
src/stock-pixmaps/stock_line_24.png [deleted file]
src/stock-pixmaps/stock_merge_16.png [deleted file]
src/stock-pixmaps/stock_merge_24.png [deleted file]
src/stock-pixmaps/stock_order_bottom_16.png [deleted file]
src/stock-pixmaps/stock_order_top_16.png [deleted file]
src/stock-pixmaps/stock_pencil_16.png [deleted file]
src/stock-pixmaps/stock_pencil_24.png [deleted file]
src/stock-pixmaps/stock_properties_16.png [deleted file]
src/stock-pixmaps/stock_properties_24.png [deleted file]
src/stock-pixmaps/stock_rotate_left_16.png [deleted file]
src/stock-pixmaps/stock_rotate_right_16.png [deleted file]
src/stock-pixmaps/stock_text_16.png [deleted file]
src/stock-pixmaps/stock_text_24.png [deleted file]
src/stock-pixmaps/stock_vchain_24.png [deleted file]
src/stock-pixmaps/stock_vchain_broken_24.png [deleted file]
src/stock.c [deleted file]
src/stock.h [deleted file]
src/ui-property-bar.c
src/ui-sidebar.c
src/ui.c
src/wdgt-chain-button.c

index a889716e24d5655c3633d8a859ad2380bacdaf60..1e064687f3f14b8ca841a3aec5e72b0128af090a 100644 (file)
@@ -28,7 +28,6 @@ AC_PROG_INSTALL
 GNOME_COMPILE_WARNINGS
 
 AC_PATH_PROG(GLIB_GENMARSHAL,         glib-genmarshal)
-AC_PATH_PROG(GDK_PIXBUF_CSOURCE,      gdk-pixbuf-csource)
 AC_PATH_PROG(UPDATE_MIME_DATABASE,    update-mime-database)
 AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database)
 AC_PATH_PROG(GTK_UPDATE_ICON_CACHE,   gtk-update-icon-cache)
@@ -274,7 +273,6 @@ libglabels/Makefile
 libglabels/${LIBGLABELS_BRANCH}.pc
 src/Makefile
 src/pixmaps/Makefile
-src/stock-pixmaps/Makefile
 data/Makefile
 data/desktop/Makefile
 data/icons/Makefile
index de73342ecd509e8c567fa0cb714a6b7462648c3f..6b40ab3bc8d5774d6f63519459965308c5340812 100644 (file)
@@ -1,11 +1,40 @@
 
 size = 16x16
 appiconsdir = $(datadir)/icons/hicolor/$(size)/apps
+actioniconsdir = $(datadir)/$(GLABELS_BRANCH)/icons/hicolor/$(size)/actions
 
 appicons_DATA = \
        apps/glabels-3.0.png
 
+actionicons_DATA = \
+       actions/glabels-align-bottom.png        \
+       actions/glabels-align-hcenter.png       \
+       actions/glabels-align-left.png          \
+       actions/glabels-align-right.png         \
+       actions/glabels-align-top.png           \
+       actions/glabels-align-vcenter.png       \
+       actions/glabels-arrow.png               \
+       actions/glabels-barcode.png             \
+       actions/glabels-box.png                 \
+       actions/glabels-bucket-fill.png         \
+       actions/glabels-center-horiz.png        \
+       actions/glabels-center-vert.png         \
+       actions/glabels-ellipse.png             \
+       actions/glabels-flip-horiz.png          \
+       actions/glabels-flip-vert.png           \
+       actions/glabels-image.png               \
+       actions/glabels-line.png                \
+       actions/glabels-merge.png               \
+       actions/glabels-object-properties.png   \
+       actions/glabels-order-bottom.png        \
+       actions/glabels-order-top.png           \
+       actions/glabels-pencil.png              \
+       actions/glabels-rotate-left.png         \
+       actions/glabels-rotate-right.png        \
+       actions/glabels-text.png
+
 noinst_DATA =
 
-EXTRA_DIST = $(appicons_DATA) \
+EXTRA_DIST = $(appicons_DATA)                  \
+            $(actionicons_DATA)                \
             $(noinst_DATA)
diff --git a/data/icons/16x16/actions/glabels-align-bottom.png b/data/icons/16x16/actions/glabels-align-bottom.png
new file mode 100644 (file)
index 0000000..da901bc
Binary files /dev/null and b/data/icons/16x16/actions/glabels-align-bottom.png differ
diff --git a/data/icons/16x16/actions/glabels-align-hcenter.png b/data/icons/16x16/actions/glabels-align-hcenter.png
new file mode 100644 (file)
index 0000000..684c125
Binary files /dev/null and b/data/icons/16x16/actions/glabels-align-hcenter.png differ
diff --git a/data/icons/16x16/actions/glabels-align-left.png b/data/icons/16x16/actions/glabels-align-left.png
new file mode 100644 (file)
index 0000000..1cdcf9b
Binary files /dev/null and b/data/icons/16x16/actions/glabels-align-left.png differ
diff --git a/data/icons/16x16/actions/glabels-align-right.png b/data/icons/16x16/actions/glabels-align-right.png
new file mode 100644 (file)
index 0000000..2b4872b
Binary files /dev/null and b/data/icons/16x16/actions/glabels-align-right.png differ
diff --git a/data/icons/16x16/actions/glabels-align-top.png b/data/icons/16x16/actions/glabels-align-top.png
new file mode 100644 (file)
index 0000000..5bda931
Binary files /dev/null and b/data/icons/16x16/actions/glabels-align-top.png differ
diff --git a/data/icons/16x16/actions/glabels-align-vcenter.png b/data/icons/16x16/actions/glabels-align-vcenter.png
new file mode 100644 (file)
index 0000000..a51293f
Binary files /dev/null and b/data/icons/16x16/actions/glabels-align-vcenter.png differ
diff --git a/data/icons/16x16/actions/glabels-arrow.png b/data/icons/16x16/actions/glabels-arrow.png
new file mode 100644 (file)
index 0000000..0ae5f36
Binary files /dev/null and b/data/icons/16x16/actions/glabels-arrow.png differ
diff --git a/data/icons/16x16/actions/glabels-barcode.png b/data/icons/16x16/actions/glabels-barcode.png
new file mode 100644 (file)
index 0000000..6e0e289
Binary files /dev/null and b/data/icons/16x16/actions/glabels-barcode.png differ
diff --git a/data/icons/16x16/actions/glabels-box.png b/data/icons/16x16/actions/glabels-box.png
new file mode 100644 (file)
index 0000000..c141c9d
Binary files /dev/null and b/data/icons/16x16/actions/glabels-box.png differ
diff --git a/data/icons/16x16/actions/glabels-bucket-fill.png b/data/icons/16x16/actions/glabels-bucket-fill.png
new file mode 100644 (file)
index 0000000..2be70de
Binary files /dev/null and b/data/icons/16x16/actions/glabels-bucket-fill.png differ
diff --git a/data/icons/16x16/actions/glabels-center-horiz.png b/data/icons/16x16/actions/glabels-center-horiz.png
new file mode 100644 (file)
index 0000000..fce3e90
Binary files /dev/null and b/data/icons/16x16/actions/glabels-center-horiz.png differ
diff --git a/data/icons/16x16/actions/glabels-center-vert.png b/data/icons/16x16/actions/glabels-center-vert.png
new file mode 100644 (file)
index 0000000..08b19af
Binary files /dev/null and b/data/icons/16x16/actions/glabels-center-vert.png differ
diff --git a/data/icons/16x16/actions/glabels-ellipse.png b/data/icons/16x16/actions/glabels-ellipse.png
new file mode 100644 (file)
index 0000000..9652562
Binary files /dev/null and b/data/icons/16x16/actions/glabels-ellipse.png differ
diff --git a/data/icons/16x16/actions/glabels-flip-horiz.png b/data/icons/16x16/actions/glabels-flip-horiz.png
new file mode 100644 (file)
index 0000000..e477068
Binary files /dev/null and b/data/icons/16x16/actions/glabels-flip-horiz.png differ
diff --git a/data/icons/16x16/actions/glabels-flip-vert.png b/data/icons/16x16/actions/glabels-flip-vert.png
new file mode 100644 (file)
index 0000000..93027c9
Binary files /dev/null and b/data/icons/16x16/actions/glabels-flip-vert.png differ
diff --git a/data/icons/16x16/actions/glabels-image.png b/data/icons/16x16/actions/glabels-image.png
new file mode 100644 (file)
index 0000000..ee9ed3d
Binary files /dev/null and b/data/icons/16x16/actions/glabels-image.png differ
diff --git a/data/icons/16x16/actions/glabels-line.png b/data/icons/16x16/actions/glabels-line.png
new file mode 100644 (file)
index 0000000..cf0e040
Binary files /dev/null and b/data/icons/16x16/actions/glabels-line.png differ
diff --git a/data/icons/16x16/actions/glabels-merge.png b/data/icons/16x16/actions/glabels-merge.png
new file mode 100644 (file)
index 0000000..2a3bfe8
Binary files /dev/null and b/data/icons/16x16/actions/glabels-merge.png differ
diff --git a/data/icons/16x16/actions/glabels-object-properties.png b/data/icons/16x16/actions/glabels-object-properties.png
new file mode 100644 (file)
index 0000000..ab42b19
Binary files /dev/null and b/data/icons/16x16/actions/glabels-object-properties.png differ
diff --git a/data/icons/16x16/actions/glabels-order-bottom.png b/data/icons/16x16/actions/glabels-order-bottom.png
new file mode 100644 (file)
index 0000000..f6ed2d0
Binary files /dev/null and b/data/icons/16x16/actions/glabels-order-bottom.png differ
diff --git a/data/icons/16x16/actions/glabels-order-top.png b/data/icons/16x16/actions/glabels-order-top.png
new file mode 100644 (file)
index 0000000..0884bc1
Binary files /dev/null and b/data/icons/16x16/actions/glabels-order-top.png differ
diff --git a/data/icons/16x16/actions/glabels-pencil.png b/data/icons/16x16/actions/glabels-pencil.png
new file mode 100644 (file)
index 0000000..83a1493
Binary files /dev/null and b/data/icons/16x16/actions/glabels-pencil.png differ
diff --git a/data/icons/16x16/actions/glabels-rotate-left.png b/data/icons/16x16/actions/glabels-rotate-left.png
new file mode 100644 (file)
index 0000000..157884e
Binary files /dev/null and b/data/icons/16x16/actions/glabels-rotate-left.png differ
diff --git a/data/icons/16x16/actions/glabels-rotate-right.png b/data/icons/16x16/actions/glabels-rotate-right.png
new file mode 100644 (file)
index 0000000..cc5dc49
Binary files /dev/null and b/data/icons/16x16/actions/glabels-rotate-right.png differ
diff --git a/data/icons/16x16/actions/glabels-text.png b/data/icons/16x16/actions/glabels-text.png
new file mode 100644 (file)
index 0000000..c539bf1
Binary files /dev/null and b/data/icons/16x16/actions/glabels-text.png differ
index baf6b8ef4fc222d7e0e5a3ec576027c5edefe0a5..4dd62a0432a44dc977fd8cd19cd0941a7ce71960 100644 (file)
@@ -1,11 +1,30 @@
 
 size = 24x24
 appiconsdir = $(datadir)/icons/hicolor/$(size)/apps
+actioniconsdir = $(datadir)/$(GLABELS_BRANCH)/icons/hicolor/$(size)/actions
 
 appicons_DATA = \
        apps/glabels-3.0.png
 
+actionicons_DATA = \
+       actions/glabels-arrow.png               \
+       actions/glabels-barcode.png             \
+       actions/glabels-box.png                 \
+       actions/glabels-bucket-fill.png         \
+       actions/glabels-ellipse.png             \
+       actions/glabels-hchain-broken.png       \
+       actions/glabels-hchain.png              \
+       actions/glabels-image.png               \
+       actions/glabels-line.png                \
+       actions/glabels-merge.png               \
+       actions/glabels-pencil.png              \
+       actions/glabels-object-properties.png   \
+       actions/glabels-text.png                \
+       actions/glabels-vchain-broken.png       \
+       actions/glabels-vchain.png
+
 noinst_DATA =
 
-EXTRA_DIST = $(appicons_DATA) \
+EXTRA_DIST = $(appicons_DATA)                  \
+            $(actionicons_DATA)                \
             $(noinst_DATA)
diff --git a/data/icons/24x24/actions/glabels-arrow.png b/data/icons/24x24/actions/glabels-arrow.png
new file mode 100644 (file)
index 0000000..6e0e26a
Binary files /dev/null and b/data/icons/24x24/actions/glabels-arrow.png differ
diff --git a/data/icons/24x24/actions/glabels-barcode.png b/data/icons/24x24/actions/glabels-barcode.png
new file mode 100644 (file)
index 0000000..9699c8d
Binary files /dev/null and b/data/icons/24x24/actions/glabels-barcode.png differ
diff --git a/data/icons/24x24/actions/glabels-box.png b/data/icons/24x24/actions/glabels-box.png
new file mode 100644 (file)
index 0000000..9f8e06f
Binary files /dev/null and b/data/icons/24x24/actions/glabels-box.png differ
diff --git a/data/icons/24x24/actions/glabels-bucket-fill.png b/data/icons/24x24/actions/glabels-bucket-fill.png
new file mode 100644 (file)
index 0000000..1ee5993
Binary files /dev/null and b/data/icons/24x24/actions/glabels-bucket-fill.png differ
diff --git a/data/icons/24x24/actions/glabels-ellipse.png b/data/icons/24x24/actions/glabels-ellipse.png
new file mode 100644 (file)
index 0000000..12f0468
Binary files /dev/null and b/data/icons/24x24/actions/glabels-ellipse.png differ
diff --git a/data/icons/24x24/actions/glabels-hchain-broken.png b/data/icons/24x24/actions/glabels-hchain-broken.png
new file mode 100644 (file)
index 0000000..2e961a3
Binary files /dev/null and b/data/icons/24x24/actions/glabels-hchain-broken.png differ
diff --git a/data/icons/24x24/actions/glabels-hchain.png b/data/icons/24x24/actions/glabels-hchain.png
new file mode 100644 (file)
index 0000000..5bc2eed
Binary files /dev/null and b/data/icons/24x24/actions/glabels-hchain.png differ
diff --git a/data/icons/24x24/actions/glabels-image.png b/data/icons/24x24/actions/glabels-image.png
new file mode 100644 (file)
index 0000000..093c8ad
Binary files /dev/null and b/data/icons/24x24/actions/glabels-image.png differ
diff --git a/data/icons/24x24/actions/glabels-line.png b/data/icons/24x24/actions/glabels-line.png
new file mode 100644 (file)
index 0000000..7bb6523
Binary files /dev/null and b/data/icons/24x24/actions/glabels-line.png differ
diff --git a/data/icons/24x24/actions/glabels-merge.png b/data/icons/24x24/actions/glabels-merge.png
new file mode 100644 (file)
index 0000000..af61200
Binary files /dev/null and b/data/icons/24x24/actions/glabels-merge.png differ
diff --git a/data/icons/24x24/actions/glabels-object-properties.png b/data/icons/24x24/actions/glabels-object-properties.png
new file mode 100644 (file)
index 0000000..f592606
Binary files /dev/null and b/data/icons/24x24/actions/glabels-object-properties.png differ
diff --git a/data/icons/24x24/actions/glabels-pencil.png b/data/icons/24x24/actions/glabels-pencil.png
new file mode 100644 (file)
index 0000000..a36ce93
Binary files /dev/null and b/data/icons/24x24/actions/glabels-pencil.png differ
diff --git a/data/icons/24x24/actions/glabels-text.png b/data/icons/24x24/actions/glabels-text.png
new file mode 100644 (file)
index 0000000..b9e5511
Binary files /dev/null and b/data/icons/24x24/actions/glabels-text.png differ
diff --git a/data/icons/24x24/actions/glabels-vchain-broken.png b/data/icons/24x24/actions/glabels-vchain-broken.png
new file mode 100644 (file)
index 0000000..8ef1363
Binary files /dev/null and b/data/icons/24x24/actions/glabels-vchain-broken.png differ
diff --git a/data/icons/24x24/actions/glabels-vchain.png b/data/icons/24x24/actions/glabels-vchain.png
new file mode 100644 (file)
index 0000000..7dc2031
Binary files /dev/null and b/data/icons/24x24/actions/glabels-vchain.png differ
index 2b7e34005c9e3ebbf4484813f0fd71b5d18f908d..816c00551f312729f0dd272a8d84df75f12d25bf 100644 (file)
@@ -138,8 +138,6 @@ src/message-bar.c
 src/message-bar.h
 src/recent.c
 src/recent.h
-src/stock.c
-src/stock.h
 src/str-util.c
 src/str-util.h
 src/svg-cache.c
index 53084844159a97e3c6282aad438d6d1afcdf1d26..aac2b7ef1f522319a0c1f1d369e39018f4f6dc56 100644 (file)
@@ -1,5 +1,5 @@
 
-SUBDIRS= ../libglabels pixmaps stock-pixmaps
+SUBDIRS= ../libglabels pixmaps
 
 bin_PROGRAMS = glabels-3 glabels-3-batch
 
@@ -53,8 +53,6 @@ glabels_3_SOURCES =                   \
        critical-error-handler.h        \
        window.c                        \
        window.h                        \
-       stock.c                         \
-       stock.h                         \
        ui.h                            \
        ui.c                            \
        ui-util.h                       \
index 80ec08fdeeeff91e1048c5457935ad982b7d5e33..04186f6189106936c729bdfefb1463939e512020 100644 (file)
@@ -182,14 +182,14 @@ gl_color_combo_button_finalize (GObject *object)
 /** New Object Generator.                                                    */
 /*****************************************************************************/
 GtkWidget *
-gl_color_combo_button_new (GdkPixbuf    *icon,
+gl_color_combo_button_new (const gchar  *icon_name,
                            const gchar  *default_label,
                            guint         default_color,
                            guint         color)
 {
         glColorComboButton *this;
-        GdkPixbuf          *pixbuf;
         GtkWidget          *wimage;
+        GdkPixbuf          *pixbuf1, *pixbuf2;
 
         this = g_object_new (TYPE_GL_COLOR_COMBO_BUTTON, NULL);
 
@@ -201,11 +201,15 @@ gl_color_combo_button_new (GdkPixbuf    *icon,
         this->priv->default_color = default_color;
         this->priv->color = color;
 
-        if (icon)
+        if (icon_name)
         {
-                pixbuf = gdk_pixbuf_new_subpixbuf (icon, 0, 0, IMAGE_W, IMAGE_H-SWATCH_H);
-                wimage = gtk_image_new_from_pixbuf (pixbuf);
-                g_object_unref (G_OBJECT (pixbuf));
+                pixbuf1 = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
+                                                    icon_name, IMAGE_W, 0, NULL);
+                pixbuf2 = gdk_pixbuf_new_subpixbuf (pixbuf1, 0, 0, IMAGE_W, IMAGE_H-SWATCH_H);
+
+                wimage = gtk_image_new_from_pixbuf (pixbuf2);
+                g_object_unref (G_OBJECT (pixbuf1));
+                g_object_unref (G_OBJECT (pixbuf2));
                 gtk_box_pack_start (GTK_BOX (this->priv->button_vbox), wimage, FALSE, FALSE, 0);
 
                 this->priv->swatch = gl_color_swatch_new (IMAGE_W, SWATCH_H, color);
index f5878476ce4d819a03ae71d9f853d14c9ac63b4e..6b85a2190e1e1b65018be0fe9f866fa00108c534 100644 (file)
@@ -62,7 +62,7 @@ struct _glColorComboButtonClass {
 
 GType            gl_color_combo_button_get_type       (void) G_GNUC_CONST;
 
-GtkWidget       *gl_color_combo_button_new            (GdkPixbuf          *icon,
+GtkWidget       *gl_color_combo_button_new            (const gchar        *icon_name,
                                                        const gchar        *default_label,
                                                        guint               default_color,
                                                        guint               color);
index e43f97689c30def2093850fc66999808671b7d1e..c8ffe17774ba46ee81967e7c726a5beb2948edf0 100644 (file)
@@ -25,7 +25,6 @@
 #include <libglabels.h>
 #include "warning-handler.h"
 #include "critical-error-handler.h"
-#include "stock.h"
 #include "merge-init.h"
 #include "recent.h"
 #include "mini-preview-pixbuf-cache.h"
@@ -96,12 +95,15 @@ main (int argc, char **argv)
        gl_critical_error_handler_init();
        gl_warning_handler_init();
 
+       /* Add glabels specific icons to search path */
+        gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
+                                           GLABELS_DATA_DIR G_DIR_SEPARATOR_S "icons");
+
        /* Set default icon */
         gtk_window_set_default_icon_name (GLABELS_ICON_NAME);
        
        /* Initialize subsystems */
        gl_debug_init ();
-       gl_stock_init ();
        lgl_db_init ();
        gl_prefs_init ();
        gl_mini_preview_pixbuf_cache_init ();
index 6c60b10767b36df686c9e7d5b7db67802619a82d..c0290e561b9f01f913a8a338619d2d58400f4e7c 100644 (file)
@@ -27,7 +27,6 @@
 #include <math.h>
 
 #include "prefs.h"
-#include "stock.h"
 #include "color-combo.h"
 #include "color.h"
 #include "wdgt-chain-button.h"
@@ -151,9 +150,9 @@ gl_object_editor_init (glObjectEditor *editor)
 
        gtk_widget_show_all (GTK_WIDGET(editor));
 
-        gtk_image_set_from_stock (GTK_IMAGE(editor->priv->title_image),
-                                  GL_STOCK_PROPERTIES,
-                                  GTK_ICON_SIZE_LARGE_TOOLBAR);
+        gtk_image_set_from_icon_name (GTK_IMAGE(editor->priv->title_image),
+                                      "glabels-object-properties",
+                                      GTK_ICON_SIZE_LARGE_TOOLBAR);
 
         s = g_strdup_printf ("<span weight=\"bold\">%s</span>",
                              _("Object properties"));
@@ -304,7 +303,7 @@ set_object (glObjectEditor  *editor,
 
                 if (GL_IS_LABEL_BOX (object))
                 {
-                        image = GL_STOCK_BOX;
+                        image = "glabels-box";
                         title = _("Box object properties");
 
                         gtk_widget_show_all (editor->priv->pos_page_vbox);
@@ -323,7 +322,7 @@ set_object (glObjectEditor  *editor,
                 }
                 else if (GL_IS_LABEL_ELLIPSE (object))
                 {
-                        image = GL_STOCK_ELLIPSE;
+                        image = "glabels-ellipse";
                         title = _("Ellipse object properties");
 
                         gtk_widget_show_all (editor->priv->pos_page_vbox);
@@ -342,7 +341,7 @@ set_object (glObjectEditor  *editor,
                 }
                 else if (GL_IS_LABEL_LINE (object))
                 {
-                        image = GL_STOCK_LINE;
+                        image = "glabels-line";
                         title = _("Line object properties");
 
                         gtk_widget_show_all (editor->priv->pos_page_vbox);
@@ -359,7 +358,7 @@ set_object (glObjectEditor  *editor,
                 }
                 else if (GL_IS_LABEL_IMAGE (object))
                 {
-                        image = GL_STOCK_IMAGE;
+                        image = "glabels-image";
                         title = _("Image object properties");
 
                         gtk_widget_show_all (editor->priv->pos_page_vbox);
@@ -376,7 +375,7 @@ set_object (glObjectEditor  *editor,
                 }
                 else if (GL_IS_LABEL_TEXT (object))
                 {
-                        image = GL_STOCK_TEXT;
+                        image = "glabels-text";
                         title = _("Text object properties");
 
                         gtk_widget_show_all (editor->priv->pos_page_vbox);
@@ -398,7 +397,7 @@ set_object (glObjectEditor  *editor,
                 }
                 else if (GL_IS_LABEL_BARCODE (object))
                 {
-                        image = GL_STOCK_BARCODE;
+                        image = "glabels-barcode";
                         title = _("Barcode object properties");
 
                         gtk_widget_show_all (editor->priv->pos_page_vbox);
@@ -420,9 +419,9 @@ set_object (glObjectEditor  *editor,
                         gl_label_barcode_style_free (bc_style);
                 }
 
-                gtk_image_set_from_stock (GTK_IMAGE(editor->priv->title_image),
-                                          image,
-                                         GTK_ICON_SIZE_LARGE_TOOLBAR);
+                gtk_image_set_from_icon_name (GTK_IMAGE(editor->priv->title_image),
+                                              image,
+                                              GTK_ICON_SIZE_LARGE_TOOLBAR);
 
                s = g_strdup_printf ("<span weight=\"bold\">%s</span>",
                                     title);
@@ -457,9 +456,9 @@ set_object (glObjectEditor  *editor,
         {
                 editor->priv->object = NULL;
 
-                gtk_image_set_from_stock (GTK_IMAGE(editor->priv->title_image),
-                                         GL_STOCK_PROPERTIES,
-                                         GTK_ICON_SIZE_LARGE_TOOLBAR);
+                gtk_image_set_from_icon_name (GTK_IMAGE(editor->priv->title_image),
+                                              "glabels-object-properties",
+                                              GTK_ICON_SIZE_LARGE_TOOLBAR);
 
                s = g_strdup_printf ("<span weight=\"bold\">%s</span>",
                                     _("Object properties"));
diff --git a/src/stock-pixmaps/Makefile.am b/src/stock-pixmaps/Makefile.am
deleted file mode 100644 (file)
index 0062537..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-
-IMAGES =                               \
-       stock_arrow_24.png              \
-       stock_arrow_16.png              \
-       stock_barcode_24.png            \
-       stock_barcode_16.png            \
-       stock_box_24.png                \
-       stock_box_16.png                \
-       stock_ellipse_24.png            \
-       stock_ellipse_16.png            \
-       stock_image_24.png              \
-       stock_image_16.png              \
-       stock_line_24.png               \
-       stock_line_16.png               \
-       stock_merge_24.png              \
-       stock_merge_16.png              \
-       stock_properties_24.png         \
-       stock_properties_16.png         \
-       stock_text_24.png               \
-       stock_text_16.png               \
-       stock_order_top_16.png          \
-       stock_order_bottom_16.png       \
-       stock_rotate_left_16.png        \
-       stock_rotate_right_16.png       \
-       stock_flip_horiz_16.png         \
-       stock_flip_vert_16.png          \
-       stock_align_left_16.png         \
-       stock_align_right_16.png        \
-       stock_align_hcenter_16.png      \
-       stock_align_top_16.png          \
-       stock_align_bottom_16.png       \
-       stock_align_vcenter_16.png      \
-       stock_center_horiz_16.png       \
-       stock_center_vert_16.png        \
-       stock_bucket_fill_16.png        \
-       stock_bucket_fill_24.png        \
-       stock_pencil_16.png             \
-       stock_pencil_24.png             \
-       stock_hchain_24.png             \
-       stock_hchain_broken_24.png      \
-       stock_vchain_24.png             \
-       stock_vchain_broken_24.png
-
-VARIABLES1 = \
-               stock_arrow_24          $(srcdir)/stock_arrow_24.png    \
-               stock_arrow_16          $(srcdir)/stock_arrow_16.png    \
-               stock_barcode_24        $(srcdir)/stock_barcode_24.png  \
-               stock_barcode_16        $(srcdir)/stock_barcode_16.png  \
-               stock_box_24            $(srcdir)/stock_box_24.png      \
-               stock_box_16            $(srcdir)/stock_box_16.png      \
-               stock_ellipse_24        $(srcdir)/stock_ellipse_24.png  \
-               stock_ellipse_16        $(srcdir)/stock_ellipse_16.png  \
-               stock_image_24          $(srcdir)/stock_image_24.png    \
-               stock_image_16          $(srcdir)/stock_image_16.png    \
-               stock_line_24           $(srcdir)/stock_line_24.png     \
-               stock_line_16           $(srcdir)/stock_line_16.png     \
-               stock_merge_24          $(srcdir)/stock_merge_24.png    \
-               stock_merge_16          $(srcdir)/stock_merge_16.png    \
-               stock_properties_24     $(srcdir)/stock_properties_24.png \
-               stock_properties_16     $(srcdir)/stock_properties_16.png \
-               stock_text_24           $(srcdir)/stock_text_24.png     \
-               stock_text_16           $(srcdir)/stock_text_16.png     \
-               stock_order_top_16      $(srcdir)/stock_order_top_16.png \
-               stock_order_bottom_16   $(srcdir)/stock_order_bottom_16.png \
-               stock_rotate_left_16    $(srcdir)/stock_rotate_left_16.png \
-               stock_rotate_right_16   $(srcdir)/stock_rotate_right_16.png \
-               stock_flip_horiz_16     $(srcdir)/stock_flip_horiz_16.png \
-               stock_flip_vert_16      $(srcdir)/stock_flip_vert_16.png \
-               stock_align_left_16     $(srcdir)/stock_align_left_16.png \
-               stock_align_right_16    $(srcdir)/stock_align_right_16.png \
-               stock_align_hcenter_16  $(srcdir)/stock_align_hcenter_16.png \
-               stock_align_top_16      $(srcdir)/stock_align_top_16.png \
-               stock_align_bottom_16   $(srcdir)/stock_align_bottom_16.png \
-               stock_align_vcenter_16  $(srcdir)/stock_align_vcenter_16.png \
-               stock_center_horiz_16   $(srcdir)/stock_center_horiz_16.png \
-               stock_center_vert_16    $(srcdir)/stock_center_vert_16.png \
-               stock_bucket_fill_16    $(srcdir)/stock_bucket_fill_16.png \
-               stock_bucket_fill_24    $(srcdir)/stock_bucket_fill_24.png \
-               stock_pencil_16         $(srcdir)/stock_pencil_16.png \
-               stock_pencil_24         $(srcdir)/stock_pencil_24.png \
-               stock_hchain_24         $(srcdir)/stock_hchain_24.png \
-               stock_hchain_broken_24  $(srcdir)/stock_hchain_broken_24.png \
-               stock_vchain_24         $(srcdir)/stock_vchain_24.png \
-               stock_vchain_broken_24  $(srcdir)/stock_vchain_broken_24.png
-
-
-noinst_DATA = stockpixbufs.h
-CLEANFILES = $(noinst_DATA)
-
-stockpixbufs.h: $(IMAGES)
-       $(AM_V_GEN) $(GDK_PIXBUF_CSOURCE)                                                 \
-          --raw --build-list $(VARIABLES1) > $(srcdir)/stockpixbufs.h || \
-           ( rm -f $(srcdir)/stockpixbufs.h && false )
-
-EXTRA_DIST = $(IMAGES) stockpixbufs.h
diff --git a/src/stock-pixmaps/stock_align_bottom_16.png b/src/stock-pixmaps/stock_align_bottom_16.png
deleted file mode 100644 (file)
index da901bc..0000000
Binary files a/src/stock-pixmaps/stock_align_bottom_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_align_hcenter_16.png b/src/stock-pixmaps/stock_align_hcenter_16.png
deleted file mode 100644 (file)
index 684c125..0000000
Binary files a/src/stock-pixmaps/stock_align_hcenter_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_align_left_16.png b/src/stock-pixmaps/stock_align_left_16.png
deleted file mode 100644 (file)
index 1cdcf9b..0000000
Binary files a/src/stock-pixmaps/stock_align_left_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_align_right_16.png b/src/stock-pixmaps/stock_align_right_16.png
deleted file mode 100644 (file)
index 2b4872b..0000000
Binary files a/src/stock-pixmaps/stock_align_right_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_align_top_16.png b/src/stock-pixmaps/stock_align_top_16.png
deleted file mode 100644 (file)
index 5bda931..0000000
Binary files a/src/stock-pixmaps/stock_align_top_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_align_vcenter_16.png b/src/stock-pixmaps/stock_align_vcenter_16.png
deleted file mode 100644 (file)
index a51293f..0000000
Binary files a/src/stock-pixmaps/stock_align_vcenter_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_arrow_16.png b/src/stock-pixmaps/stock_arrow_16.png
deleted file mode 100644 (file)
index 0ae5f36..0000000
Binary files a/src/stock-pixmaps/stock_arrow_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_arrow_24.png b/src/stock-pixmaps/stock_arrow_24.png
deleted file mode 100644 (file)
index 6e0e26a..0000000
Binary files a/src/stock-pixmaps/stock_arrow_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_barcode_16.png b/src/stock-pixmaps/stock_barcode_16.png
deleted file mode 100644 (file)
index 6e0e289..0000000
Binary files a/src/stock-pixmaps/stock_barcode_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_barcode_24.png b/src/stock-pixmaps/stock_barcode_24.png
deleted file mode 100644 (file)
index 9699c8d..0000000
Binary files a/src/stock-pixmaps/stock_barcode_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_box_16.png b/src/stock-pixmaps/stock_box_16.png
deleted file mode 100644 (file)
index c141c9d..0000000
Binary files a/src/stock-pixmaps/stock_box_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_box_24.png b/src/stock-pixmaps/stock_box_24.png
deleted file mode 100644 (file)
index 9f8e06f..0000000
Binary files a/src/stock-pixmaps/stock_box_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_bucket_fill_16.png b/src/stock-pixmaps/stock_bucket_fill_16.png
deleted file mode 100644 (file)
index 2be70de..0000000
Binary files a/src/stock-pixmaps/stock_bucket_fill_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_bucket_fill_24.png b/src/stock-pixmaps/stock_bucket_fill_24.png
deleted file mode 100644 (file)
index 1ee5993..0000000
Binary files a/src/stock-pixmaps/stock_bucket_fill_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_center_horiz_16.png b/src/stock-pixmaps/stock_center_horiz_16.png
deleted file mode 100644 (file)
index fce3e90..0000000
Binary files a/src/stock-pixmaps/stock_center_horiz_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_center_vert_16.png b/src/stock-pixmaps/stock_center_vert_16.png
deleted file mode 100644 (file)
index 08b19af..0000000
Binary files a/src/stock-pixmaps/stock_center_vert_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_ellipse_16.png b/src/stock-pixmaps/stock_ellipse_16.png
deleted file mode 100644 (file)
index 9652562..0000000
Binary files a/src/stock-pixmaps/stock_ellipse_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_ellipse_24.png b/src/stock-pixmaps/stock_ellipse_24.png
deleted file mode 100644 (file)
index 12f0468..0000000
Binary files a/src/stock-pixmaps/stock_ellipse_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_flip_horiz_16.png b/src/stock-pixmaps/stock_flip_horiz_16.png
deleted file mode 100644 (file)
index e477068..0000000
Binary files a/src/stock-pixmaps/stock_flip_horiz_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_flip_vert_16.png b/src/stock-pixmaps/stock_flip_vert_16.png
deleted file mode 100644 (file)
index 93027c9..0000000
Binary files a/src/stock-pixmaps/stock_flip_vert_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_hchain_24.png b/src/stock-pixmaps/stock_hchain_24.png
deleted file mode 100644 (file)
index 5bc2eed..0000000
Binary files a/src/stock-pixmaps/stock_hchain_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_hchain_broken_24.png b/src/stock-pixmaps/stock_hchain_broken_24.png
deleted file mode 100644 (file)
index 2e961a3..0000000
Binary files a/src/stock-pixmaps/stock_hchain_broken_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_image_16.png b/src/stock-pixmaps/stock_image_16.png
deleted file mode 100644 (file)
index ee9ed3d..0000000
Binary files a/src/stock-pixmaps/stock_image_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_image_24.png b/src/stock-pixmaps/stock_image_24.png
deleted file mode 100644 (file)
index 093c8ad..0000000
Binary files a/src/stock-pixmaps/stock_image_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_line_16.png b/src/stock-pixmaps/stock_line_16.png
deleted file mode 100644 (file)
index cf0e040..0000000
Binary files a/src/stock-pixmaps/stock_line_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_line_24.png b/src/stock-pixmaps/stock_line_24.png
deleted file mode 100644 (file)
index 7bb6523..0000000
Binary files a/src/stock-pixmaps/stock_line_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_merge_16.png b/src/stock-pixmaps/stock_merge_16.png
deleted file mode 100644 (file)
index 2a3bfe8..0000000
Binary files a/src/stock-pixmaps/stock_merge_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_merge_24.png b/src/stock-pixmaps/stock_merge_24.png
deleted file mode 100644 (file)
index af61200..0000000
Binary files a/src/stock-pixmaps/stock_merge_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_order_bottom_16.png b/src/stock-pixmaps/stock_order_bottom_16.png
deleted file mode 100644 (file)
index f6ed2d0..0000000
Binary files a/src/stock-pixmaps/stock_order_bottom_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_order_top_16.png b/src/stock-pixmaps/stock_order_top_16.png
deleted file mode 100644 (file)
index 0884bc1..0000000
Binary files a/src/stock-pixmaps/stock_order_top_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_pencil_16.png b/src/stock-pixmaps/stock_pencil_16.png
deleted file mode 100644 (file)
index 83a1493..0000000
Binary files a/src/stock-pixmaps/stock_pencil_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_pencil_24.png b/src/stock-pixmaps/stock_pencil_24.png
deleted file mode 100644 (file)
index a36ce93..0000000
Binary files a/src/stock-pixmaps/stock_pencil_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_properties_16.png b/src/stock-pixmaps/stock_properties_16.png
deleted file mode 100644 (file)
index ab42b19..0000000
Binary files a/src/stock-pixmaps/stock_properties_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_properties_24.png b/src/stock-pixmaps/stock_properties_24.png
deleted file mode 100644 (file)
index f592606..0000000
Binary files a/src/stock-pixmaps/stock_properties_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_rotate_left_16.png b/src/stock-pixmaps/stock_rotate_left_16.png
deleted file mode 100644 (file)
index 157884e..0000000
Binary files a/src/stock-pixmaps/stock_rotate_left_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_rotate_right_16.png b/src/stock-pixmaps/stock_rotate_right_16.png
deleted file mode 100644 (file)
index cc5dc49..0000000
Binary files a/src/stock-pixmaps/stock_rotate_right_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_text_16.png b/src/stock-pixmaps/stock_text_16.png
deleted file mode 100644 (file)
index c539bf1..0000000
Binary files a/src/stock-pixmaps/stock_text_16.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_text_24.png b/src/stock-pixmaps/stock_text_24.png
deleted file mode 100644 (file)
index b9e5511..0000000
Binary files a/src/stock-pixmaps/stock_text_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_vchain_24.png b/src/stock-pixmaps/stock_vchain_24.png
deleted file mode 100644 (file)
index 7dc2031..0000000
Binary files a/src/stock-pixmaps/stock_vchain_24.png and /dev/null differ
diff --git a/src/stock-pixmaps/stock_vchain_broken_24.png b/src/stock-pixmaps/stock_vchain_broken_24.png
deleted file mode 100644 (file)
index 8ef1363..0000000
Binary files a/src/stock-pixmaps/stock_vchain_broken_24.png and /dev/null differ
diff --git a/src/stock.c b/src/stock.c
deleted file mode 100644 (file)
index 7f31210..0000000
+++ /dev/null
@@ -1,225 +0,0 @@
-/*
- *  stock.c
- *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
- *
- *  This file is part of gLabels.
- *
- *  gLabels is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  gLabels 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 for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include <config.h>
-
-#include "stock.h"
-
-#include <glib/gi18n.h>
-#include <gtk/gtk.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-#include "stock-pixmaps/stockpixbufs.h"
-
-
-/*========================================================*/
-/* Private macros and constants.                          */
-/*========================================================*/
-
-
-/*========================================================*/
-/* Private types.                                         */
-/*========================================================*/
-
-
-/*===========================================*/
-/* Private globals                           */
-/*===========================================*/
-
-
-/*===========================================*/
-/* Local function prototypes                 */
-/*===========================================*/
-
-static void add_icons (GtkIconFactory *factory,
-                       const gchar    *stock_id,
-                       const guchar   *inline_24,
-                       const guchar   *inline_16);
-
-static void add_button_icon (GtkIconFactory *factory,
-                             const gchar    *stock_id,
-                             const guchar   *inline_24);
-
-
-/****************************************************************************/
-/* Initialize our stock icons.                                              */
-/****************************************************************************/
-void
-gl_stock_init (void)
-{
-       GtkIconFactory *factory;
-
-       static GtkStockItem items[] = {
-               { GL_STOCK_ARROW,         N_("_Select Mode"),          0, 0, NULL },
-               { GL_STOCK_TEXT,          N_("_Text"),                 0, 0, NULL },
-               { GL_STOCK_LINE,          N_("_Line"),                 0, 0, NULL },
-               { GL_STOCK_BOX,           N_("_Box"),                  0, 0, NULL },
-               { GL_STOCK_ELLIPSE,       N_("_Ellipse"),              0, 0, NULL },
-               { GL_STOCK_IMAGE,         N_("_Image"),                0, 0, NULL },
-               { GL_STOCK_BARCODE,       N_("Bar_code"),              0, 0, NULL },
-               { GL_STOCK_MERGE,         N_("_Merge Properties"),     0, 0, NULL },
-               { GL_STOCK_PROPERTIES,    N_("Object _Properties"),    0, 0, NULL },
-               { GL_STOCK_ORDER_TOP,     N_("Bring to _Front"),       0, 0, NULL },
-               { GL_STOCK_ORDER_BOTTOM,  N_("Send to _Back"),         0, 0, NULL },
-               { GL_STOCK_ROTATE_LEFT,   N_("Rotate _Left"),          0, 0, NULL },
-               { GL_STOCK_ROTATE_RIGHT,  N_("Rotate _Right"),         0, 0, NULL },
-               { GL_STOCK_FLIP_HORIZ,    N_("Flip _Horizontally"),    0, 0, NULL },
-               { GL_STOCK_FLIP_VERT,     N_("Flip _Vertically"),      0, 0, NULL },
-               { GL_STOCK_ALIGN_LEFT,    N_("_Lefts"),                0, 0, NULL },
-               { GL_STOCK_ALIGN_RIGHT,   N_("_Rights"),               0, 0, NULL },
-               { GL_STOCK_ALIGN_HCENTER, N_("_Centers"),              0, 0, NULL },
-               { GL_STOCK_ALIGN_TOP,     N_("_Tops"),                 0, 0, NULL },
-               { GL_STOCK_ALIGN_BOTTOM,  N_("Bottoms"),               0, 0, NULL },
-               { GL_STOCK_ALIGN_VCENTER, N_("Centers"),               0, 0, NULL },
-               { GL_STOCK_CENTER_HORIZ,  N_("Label Ce_nter"),         0, 0, NULL },
-               { GL_STOCK_CENTER_VERT,   N_("Label Ce_nter"),         0, 0, NULL },
-               { GL_STOCK_BUCKET_FILL,   N_("Fill color"),            0, 0, NULL },
-               { GL_STOCK_PENCIL,        N_("Line color"),            0, 0, NULL },
-               { GL_STOCK_HCHAIN,        N_("Linked"),                0, 0, NULL },
-               { GL_STOCK_HCHAIN_BROKEN, N_("Not Linked"),            0, 0, NULL },
-               { GL_STOCK_VCHAIN,        N_("Linked"),                0, 0, NULL },
-               { GL_STOCK_VCHAIN_BROKEN, N_("Not Linked"),            0, 0, NULL },
-       };
-
-       gtk_stock_add (items, G_N_ELEMENTS (items));
-
-       factory = gtk_icon_factory_new ();
-       gtk_icon_factory_add_default (factory);
-
-       add_icons (factory, GL_STOCK_ARROW,         stock_arrow_24,   stock_arrow_16);
-       add_icons (factory, GL_STOCK_TEXT,          stock_text_24,    stock_text_16);
-       add_icons (factory, GL_STOCK_LINE,          stock_line_24,    stock_line_16);
-       add_icons (factory, GL_STOCK_BOX,           stock_box_24,     stock_box_16);
-       add_icons (factory, GL_STOCK_ELLIPSE,       stock_ellipse_24, stock_ellipse_16);
-       add_icons (factory, GL_STOCK_IMAGE,         stock_image_24,   stock_image_16);
-       add_icons (factory, GL_STOCK_BARCODE,       stock_barcode_24, stock_barcode_16);
-       add_icons (factory, GL_STOCK_MERGE,         stock_merge_24,   stock_merge_16);
-
-       add_icons (factory, GL_STOCK_PROPERTIES,
-                  stock_properties_24,
-                  stock_properties_16);
-
-       add_icons (factory, GL_STOCK_ORDER_TOP,     NULL, stock_order_top_16);
-       add_icons (factory, GL_STOCK_ORDER_BOTTOM,  NULL, stock_order_bottom_16);
-       add_icons (factory, GL_STOCK_ROTATE_LEFT,   NULL, stock_rotate_left_16);
-       add_icons (factory, GL_STOCK_ROTATE_RIGHT,  NULL, stock_rotate_right_16);
-       add_icons (factory, GL_STOCK_FLIP_HORIZ,    NULL, stock_flip_horiz_16);
-       add_icons (factory, GL_STOCK_FLIP_VERT,     NULL, stock_flip_vert_16);
-       add_icons (factory, GL_STOCK_ALIGN_LEFT,    NULL, stock_align_left_16);
-       add_icons (factory, GL_STOCK_ALIGN_RIGHT,   NULL, stock_align_right_16);
-       add_icons (factory, GL_STOCK_ALIGN_HCENTER, NULL, stock_align_hcenter_16);
-       add_icons (factory, GL_STOCK_ALIGN_TOP,     NULL, stock_align_top_16);
-       add_icons (factory, GL_STOCK_ALIGN_BOTTOM,  NULL, stock_align_bottom_16);
-       add_icons (factory, GL_STOCK_ALIGN_VCENTER, NULL, stock_align_vcenter_16);
-       add_icons (factory, GL_STOCK_CENTER_HORIZ,  NULL, stock_center_horiz_16);
-       add_icons (factory, GL_STOCK_CENTER_VERT,   NULL, stock_center_vert_16);
-
-       add_icons (factory, GL_STOCK_BUCKET_FILL,   stock_bucket_fill_24, stock_bucket_fill_16);
-       add_icons (factory, GL_STOCK_PENCIL,        stock_pencil_24,      stock_pencil_16);
-
-       add_button_icon (factory, GL_STOCK_HCHAIN,        stock_hchain_24);
-       add_button_icon (factory, GL_STOCK_HCHAIN_BROKEN, stock_hchain_broken_24);
-       add_button_icon (factory, GL_STOCK_VCHAIN,        stock_vchain_24);
-       add_button_icon (factory, GL_STOCK_VCHAIN_BROKEN, stock_vchain_broken_24);
-
-       g_object_unref (G_OBJECT(factory));
-}
-
-
-/*--------------------------------------------------------------------------*/
-/* PRIVATE.  Unpack and associate given icons with stock_id.                */
-/*--------------------------------------------------------------------------*/
-static void
-add_icons (GtkIconFactory *factory,
-           const gchar    *stock_id,
-           const guchar   *inline_24,
-           const guchar   *inline_16)
-{
-       GdkPixbuf      *pixbuf;
-       GtkIconSet     *icon_set;
-       GtkIconSource  *icon_source;
-
-       if ( inline_24 != NULL ) {
-               /* Create icon set with default image */
-               pixbuf = gdk_pixbuf_new_from_inline (-1, inline_24, FALSE, NULL);
-               icon_set = gtk_icon_set_new_from_pixbuf (pixbuf);
-               g_object_unref (G_OBJECT(pixbuf));
-       } else {
-               /* Create an empty icon set */
-               icon_set = gtk_icon_set_new ();
-       }
-
-       if ( inline_16 != NULL ) {
-               /* Add 16x16 icon for menus to icon set */
-               icon_source = gtk_icon_source_new ();
-               pixbuf = gdk_pixbuf_new_from_inline (-1, inline_16,
-                                                    FALSE, NULL);
-               gtk_icon_source_set_pixbuf (icon_source, pixbuf);
-               g_object_unref (G_OBJECT(pixbuf));
-               gtk_icon_source_set_size_wildcarded (icon_source, FALSE);
-               gtk_icon_source_set_size (icon_source, GTK_ICON_SIZE_MENU);
-               gtk_icon_set_add_source (icon_set, icon_source);
-               gtk_icon_source_free (icon_source);
-       }
-
-       /* Now associate icon set with stock id */
-       gtk_icon_factory_add (factory, stock_id, icon_set);
-       gtk_icon_set_unref (icon_set);
-}
-
-
-/*--------------------------------------------------------------------------*/
-/* PRIVATE.  Unpack and associate given button icon with stock_id.          */
-/*--------------------------------------------------------------------------*/
-static void
-add_button_icon (GtkIconFactory *factory,
-                 const gchar    *stock_id,
-                 const guchar   *inline_24)
-{
-       GtkIconSet     *icon_set;
-       GdkPixbuf      *pixbuf;
-       GtkIconSource  *icon_source;
-
-       icon_set = gtk_icon_set_new ();
-
-       icon_source = gtk_icon_source_new ();
-       pixbuf = gdk_pixbuf_new_from_inline (-1, inline_24, FALSE, NULL);
-       gtk_icon_source_set_pixbuf (icon_source, pixbuf);
-       g_object_unref (G_OBJECT(pixbuf));
-       gtk_icon_source_set_size_wildcarded (icon_source, FALSE);
-       gtk_icon_source_set_size (icon_source, GTK_ICON_SIZE_BUTTON);
-       gtk_icon_set_add_source (icon_set, icon_source);
-       gtk_icon_source_free (icon_source);
-
-       /* Now associate icon set with stock id */
-       gtk_icon_factory_add (factory, stock_id, icon_set);
-       gtk_icon_set_unref (icon_set);
-}
-
-
-
-/*
- * Local Variables:       -- emacs
- * mode: C                -- emacs
- * c-basic-offset: 8      -- emacs
- * tab-width: 8           -- emacs
- * indent-tabs-mode: nil  -- emacs
- * End:                   -- emacs
- */
diff --git a/src/stock.h b/src/stock.h
deleted file mode 100644 (file)
index 54eb8c8..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- *  stock.h
- *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
- *
- *  This file is part of gLabels.
- *
- *  gLabels is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  gLabels 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 for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __STOCK_H__
-#define __STOCK_H__
-
-#include <glib.h>
-
-G_BEGIN_DECLS
-
-/* Stock names */
-
-#define GL_STOCK_ARROW         "gl_stock_arrow"
-#define GL_STOCK_TEXT          "gl_stock_text"
-#define GL_STOCK_LINE          "gl_stock_line"
-#define GL_STOCK_BOX           "gl_stock_box"
-#define GL_STOCK_ELLIPSE       "gl_stock_ellipse"
-#define GL_STOCK_IMAGE         "gl_stock_image"
-#define GL_STOCK_BARCODE       "gl_stock_barcode"
-#define GL_STOCK_MERGE         "gl_stock_merge"
-#define GL_STOCK_PROPERTIES    "gl_stock_properties"
-#define GL_STOCK_ORDER_TOP     "gl_stock_order_top"
-#define GL_STOCK_ORDER_BOTTOM  "gl_stock_order_bottom"
-#define GL_STOCK_ROTATE_LEFT   "gl_stock_rotate_left"
-#define GL_STOCK_ROTATE_RIGHT  "gl_stock_rotate_right"
-#define GL_STOCK_FLIP_HORIZ    "gl_stock_flip_horiz"
-#define GL_STOCK_FLIP_VERT     "gl_stock_flip_vert"
-#define GL_STOCK_ALIGN_LEFT    "gl_stock_align_left"
-#define GL_STOCK_ALIGN_RIGHT   "gl_stock_align_right"
-#define GL_STOCK_ALIGN_HCENTER "gl_stock_align_hcenter"
-#define GL_STOCK_ALIGN_TOP     "gl_stock_align_top"
-#define GL_STOCK_ALIGN_BOTTOM  "gl_stock_align_bottom"
-#define GL_STOCK_ALIGN_VCENTER "gl_stock_align_vcenter"
-#define GL_STOCK_CENTER_HORIZ  "gl_stock_center_horiz"
-#define GL_STOCK_CENTER_VERT   "gl_stock_center_vert"
-#define GL_STOCK_BUCKET_FILL   "gl_stock_bucket_fill"
-#define GL_STOCK_PENCIL        "gl_stock_pencil"
-#define GL_STOCK_HCHAIN        "gl_stock_hchain"
-#define GL_STOCK_HCHAIN_BROKEN "gl_stock_hchain_broken"
-#define GL_STOCK_VCHAIN        "gl_stock_vchain"
-#define GL_STOCK_VCHAIN_BROKEN "gl_stock_vchain_broken"
-
-void gl_stock_init (void);
-
-G_END_DECLS
-
-#endif
-
-
-
-/*
- * Local Variables:       -- emacs
- * mode: C                -- emacs
- * c-basic-offset: 8      -- emacs
- * tab-width: 8           -- emacs
- * indent-tabs-mode: nil  -- emacs
- * End:                   -- emacs
- */
index c2e82dff8182ea011be2f95e67e7e9fd125ead93..927dae2f76a8ae2f053cf1e132fe2128c965eb86 100644 (file)
@@ -29,7 +29,6 @@
 #include "builder-util.h"
 #include "font-combo.h"
 #include "color-combo-button.h"
-#include "stock-pixmaps/stockpixbufs.h"
 #include "prefs.h"
 #include "color.h"
 
@@ -236,7 +235,6 @@ gl_ui_property_bar_construct (glUIPropertyBar   *this)
                                         "adjustment1", "adjustment2",
                                         NULL };
         GError        *error = NULL;
-       GdkPixbuf     *pixbuf = NULL;
 
        gl_debug (DEBUG_PROPERTY_BAR, "START");
 
@@ -274,39 +272,33 @@ gl_ui_property_bar_construct (glUIPropertyBar   *this)
         gtk_container_add (GTK_CONTAINER (this->priv->font_family_eventbox),
                            this->priv->font_family_combo);
 
-        pixbuf = gdk_pixbuf_new_from_inline (-1, stock_text_24, FALSE, NULL);
         this->priv->text_color_button =
-                gl_color_combo_button_new (pixbuf,
+                gl_color_combo_button_new ("glabels-text",
                                            _("Default"),
                                            GL_COLOR_TEXT_DEFAULT,
                                            gl_prefs_model_get_default_text_color (gl_prefs));
         gl_color_combo_button_set_relief (GL_COLOR_COMBO_BUTTON(this->priv->text_color_button),
                                           GTK_RELIEF_NONE);
-       g_object_unref (G_OBJECT (pixbuf));
         gtk_container_add (GTK_CONTAINER (this->priv->text_color_eventbox),
                            this->priv->text_color_button);
 
-        pixbuf = gdk_pixbuf_new_from_inline (-1, stock_bucket_fill_24, FALSE, NULL);
         this->priv->fill_color_button =
-                gl_color_combo_button_new (pixbuf,
+                gl_color_combo_button_new ("glabels-bucket-fill",
                                            _("No Fill"),
                                            GL_COLOR_NO_FILL,
                                            gl_prefs_model_get_default_fill_color (gl_prefs));
         gl_color_combo_button_set_relief (GL_COLOR_COMBO_BUTTON(this->priv->fill_color_button),
                                           GTK_RELIEF_NONE);
-       g_object_unref (G_OBJECT (pixbuf));
         gtk_container_add (GTK_CONTAINER (this->priv->fill_color_eventbox),
                            this->priv->fill_color_button);
 
-        pixbuf = gdk_pixbuf_new_from_inline (-1, stock_pencil_24, FALSE, NULL);
         this->priv->line_color_button =
-                gl_color_combo_button_new (pixbuf,
+                gl_color_combo_button_new ("glabels-pencil",
                                            _("No Line"),
                                            GL_COLOR_NO_LINE,
                                            gl_prefs_model_get_default_line_color (gl_prefs));
        gl_color_combo_button_set_relief (GL_COLOR_COMBO_BUTTON(this->priv->line_color_button),
                                           GTK_RELIEF_NONE);
-       g_object_unref (G_OBJECT (pixbuf));
         gtk_container_add (GTK_CONTAINER (this->priv->line_color_eventbox),
                            this->priv->line_color_button);
 
index 60a17755dd214beb89ae36b951f644e2211bf809..d23d5a1ecbd4b1bcc14295217caf4187695c63e2 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "ui-util.h"
 #include "object-editor.h"
-#include "stock.h"
 
 #include "debug.h"
 
index b369f9d1a1abae829dd2e878ff186e6b0f439cd8..b9dacd9f6bdeec19bd72d81caaa0a409a80c1b4d 100644 (file)
--- a/src/ui.c
+++ b/src/ui.c
@@ -31,7 +31,6 @@
 #include "ui-commands.h"
 #include "file.h"
 #include "prefs.h"
-#include "stock.h"
 #include "window.h"
 #include "recent.h" 
 
@@ -271,154 +270,154 @@ static GtkActionEntry entries[] = {
 
        /* Objects action entries. */
        { "ObjectsArrowMode",
-         GL_STOCK_ARROW,
+         "glabels-arrow",
          N_("Select Mode"),
          NULL,
          N_("Select, move and modify objects"),
          G_CALLBACK (gl_ui_cmd_objects_arrow_mode) },
 
        { "ObjectsCreateText",
-         GL_STOCK_TEXT,
+         "glabels-text",
          N_("Text"),
          NULL,
          N_("Create text object"),
          G_CALLBACK (gl_ui_cmd_objects_create_text) },
 
        { "ObjectsCreateBox",
-         GL_STOCK_BOX,
+         "glabels-box",
          N_("Box"),
          NULL,
          N_("Create box/rectangle object"),
          G_CALLBACK (gl_ui_cmd_objects_create_box) },
 
        { "ObjectsCreateLine",
-         GL_STOCK_LINE,
+         "glabels-line",
          N_("Line"),
          NULL,
          N_("Create line object"),
          G_CALLBACK (gl_ui_cmd_objects_create_line) },
 
        { "ObjectsCreateEllipse",
-         GL_STOCK_ELLIPSE,
+         "glabels-ellipse",
          N_("Ellipse"),
          NULL,
          N_("Create ellipse/circle object"),
          G_CALLBACK (gl_ui_cmd_objects_create_ellipse) },
 
        { "ObjectsCreateImage",
-         GL_STOCK_IMAGE,
+         "glabels-image",
          N_("Image"),
          NULL,
          N_("Create image object"),
          G_CALLBACK (gl_ui_cmd_objects_create_image) },
 
        { "ObjectsCreateBarcode",
-         GL_STOCK_BARCODE,
+         "glabels-barcode",
          N_("Barcode"),
          NULL,
          N_("Create barcode object"),
          G_CALLBACK (gl_ui_cmd_objects_create_barcode) },
        
        { "ObjectsRaise",
-         GL_STOCK_ORDER_TOP,
+         "glabels-order-top",
          N_("Bring to front"),
          NULL,
          N_("Raise object to top"),
          G_CALLBACK (gl_ui_cmd_objects_raise) },
 
        { "ObjectsLower",
-         GL_STOCK_ORDER_BOTTOM,
+         "glabels-order-bottom",
          N_("Send to back"),
          NULL,
          N_("Lower object to bottom"),
          G_CALLBACK (gl_ui_cmd_objects_lower) },
 
        { "ObjectsRotateLeft",
-         GL_STOCK_ROTATE_LEFT,
+         "glabels-rotate-left",
          N_("Rotate left"),
          NULL,
          N_("Rotate object 90 degrees counter-clockwise"),
          G_CALLBACK (gl_ui_cmd_objects_rotate_left) },
 
        { "ObjectsRotateRight",
-         GL_STOCK_ROTATE_RIGHT,
+         "glabels-rotate-right",
          N_("Rotate right"),
          NULL,
          N_("Rotate object 90 degrees clockwise"),
          G_CALLBACK (gl_ui_cmd_objects_rotate_right) },
 
        { "ObjectsFlipHorizontal",
-         GL_STOCK_FLIP_HORIZ,
+         "glabels-flip-horiz",
          N_("Flip horizontally"),
          NULL,
          N_("Flip object horizontally"),
          G_CALLBACK (gl_ui_cmd_objects_flip_horiz) },
 
        { "ObjectsFlipVertical",
-         GL_STOCK_FLIP_VERT,
+         "glabels-flip-vert",
          N_("Flip vertically"),
          NULL,
          N_("Flip object vertically"),
          G_CALLBACK (gl_ui_cmd_objects_flip_vert) },
 
        { "ObjectsAlignLeft",
-         GL_STOCK_ALIGN_LEFT,
+         "glabels-align-left",
          N_("Align left"),
          NULL,
          N_("Align objects to left edges"),
          G_CALLBACK (gl_ui_cmd_objects_align_left) },
 
        { "ObjectsAlignRight",
-         GL_STOCK_ALIGN_RIGHT,
+         "glabels-align-right",
          N_("Align right"),
          NULL,
          N_("Align objects to right edges"),
          G_CALLBACK (gl_ui_cmd_objects_align_right) },
 
        { "ObjectsAlignHCenter",
-         GL_STOCK_ALIGN_HCENTER,
+         "glabels-align-hcenter",
          N_("Align horizontal center"),
          NULL,
          N_("Align objects to horizontal centers"),
          G_CALLBACK (gl_ui_cmd_objects_align_hcenter) },
 
        { "ObjectsAlignTop",
-         GL_STOCK_ALIGN_TOP,
+         "glabels-align-top",
          N_("Align tops"),
          NULL,
          N_("Align objects to top edges"),
          G_CALLBACK (gl_ui_cmd_objects_align_top) },
 
        { "ObjectsAlignBottom",
-         GL_STOCK_ALIGN_BOTTOM,
+         "glabels-align-bottom",
          N_("Align bottoms"),
          NULL,
          N_("Align objects to bottom edges"),
          G_CALLBACK (gl_ui_cmd_objects_align_bottom) },
 
        { "ObjectsAlignVCenter",
-         GL_STOCK_ALIGN_VCENTER,
+         "glabels-align-vcenter",
          N_("Align vertical center"),
          NULL,
          N_("Align objects to vertical centers"),
          G_CALLBACK (gl_ui_cmd_objects_align_vcenter) },
 
        { "ObjectsCenterHorizontal",
-         GL_STOCK_CENTER_HORIZ,
+         "glabels-center-horiz",
          N_("Center horizontally"),
          NULL,
          N_("Center objects to horizontal label center"),
          G_CALLBACK (gl_ui_cmd_objects_center_horiz) },
 
        { "ObjectsCenterVertical",
-         GL_STOCK_CENTER_VERT,
+         "glabels-center-vert",
          N_("Center vertically"),
          NULL,
          N_("Center objects to vertical label center"),
          G_CALLBACK (gl_ui_cmd_objects_center_vert) },
 
        { "ObjectsMergeProperties",
-         GL_STOCK_MERGE,
+         "glabels-merge",
          N_("Merge properties"),
          NULL,
          N_("Edit merge properties"),
index 5963fea9ad144a921f912b87ade4a4d1158612cf..c9f7ad23c89ef9a8033fc577c01aa322d7b9e3aa 100644 (file)
@@ -31,8 +31,6 @@
 
 #include <gtk/gtk.h>
 
-#include "stock.h"
-
 
 enum
 {
@@ -50,10 +48,10 @@ static gboolean  gl_wdgt_chain_button_draw_lines       (GtkWidget          *widg
 
 static const gchar *gl_wdgt_chain_stock_items[] =
 {
-  GL_STOCK_HCHAIN,
-  GL_STOCK_HCHAIN_BROKEN,
-  GL_STOCK_VCHAIN,
-  GL_STOCK_VCHAIN_BROKEN
+  "glabels-hchain",
+  "glabels-hchain-broken",
+  "glabels-vchain",
+  "glabels-vchain-broken"
 };
 
 
@@ -136,7 +134,7 @@ gl_wdgt_chain_button_new (glWdgtChainPosition position)
 
   button->position = position;
 
-  gtk_image_set_from_stock
+  gtk_image_set_from_icon_name
     (GTK_IMAGE (button->image),
      gl_wdgt_chain_stock_items[((position & GL_WDGT_CHAIN_LEFT) << 1) + ! button->active],
      GTK_ICON_SIZE_BUTTON);
@@ -191,9 +189,9 @@ gl_wdgt_chain_button_set_active (glWdgtChainButton  *button,
 
       num = ((button->position & GL_WDGT_CHAIN_LEFT) << 1) + (active ? 0 : 1);
 
-      gtk_image_set_from_stock (GTK_IMAGE (button->image),
-                                gl_wdgt_chain_stock_items[num],
-                                GTK_ICON_SIZE_BUTTON);
+      gtk_image_set_from_icon_name (GTK_IMAGE (button->image),
+                                    gl_wdgt_chain_stock_items[num],
+                                    GTK_ICON_SIZE_BUTTON);
     }
 }