Simon Steinbeiß a écrit :
> On Wed, 20 May 2009 11:42:49 +0200
> Vladimir Nadvornik <nadvor...@suse.cz> wrote:
>
>
>> AFAIK nobody has looked into it yet. It should be possible to replace the
>> icons without problems.
>>
>> Vladimir
>>
Here is a patch to use "stock" icons, the main issue is that they do not
match exactly the old ones.
Just try it and tell us if it works for you.
This patch is not meant to be included in geeqie as is, it is just for
testing.
BTW, directory tree view is buggy regarding expand state and open/closed
folders.
--
Zas
Index: src/view_dir.c
===================================================================
--- src/view_dir.c (révision 1709)
+++ src/view_dir.c (copie de travail)
@@ -18,6 +18,8 @@
#include "filedata.h"
#include "layout_image.h"
#include "layout_util.h"
+#include "pixbuf_util.h"
+
#include "ui_fileops.h"
#include "ui_tree_edit.h"
#include "ui_menu.h"
@@ -61,6 +63,20 @@
g_free(vd);
}
+PixmapFolders *folder_icons_new2(GtkWidget *widget)
+{
+ PixmapFolders *pf;
+
+ pf = g_new0(PixmapFolders, 1);
+
+ pf->close = gtk_widget_render_icon(widget, GTK_STOCK_DIRECTORY, GTK_ICON_SIZE_SMALL_TOOLBAR, NULL);
+ pf->open = gtk_widget_render_icon(widget, GTK_STOCK_OPEN, GTK_ICON_SIZE_SMALL_TOOLBAR, NULL);
+ pf->deny = gtk_widget_render_icon(widget, GTK_STOCK_STOP, GTK_ICON_SIZE_SMALL_TOOLBAR, NULL);
+ pf->parent = gtk_widget_render_icon(widget, GTK_STOCK_GO_UP, GTK_ICON_SIZE_SMALL_TOOLBAR, NULL);
+
+ return pf;
+}
+
ViewDir *vd_new(DirViewType type, FileData *dir_fd)
{
g_assert(VIEW_DIR_TYPES_COUNT <= G_N_ELEMENTS(menu_view_dir_radio_entries));
@@ -72,7 +88,7 @@
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(vd->widget),
GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
- vd->pf = folder_icons_new();
+ vd->pf = folder_icons_new2(vd->widget);
switch (type)
{
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel