(gtk) better desktop integration by using stock icons in the statusbar. suggested by frandavid100 in the forums.

This commit is contained in:
Charles Kerr 2008-01-16 14:55:07 +00:00
parent e49dc50751
commit c619642d4e
4 changed files with 4 additions and 123 deletions

View File

@ -20,7 +20,6 @@ noinst_HEADERS = \
makemeta-ui.h \
msgwin.h \
stats.h \
status-bar-icons.h \
sexy-icon-entry.h \
torrent-cell-renderer.h \
torrent-inspector.h \

View File

@ -20,7 +20,6 @@
#include "tr_prefs.h"
#include "lock.h"
#include "logo.h"
#include "status-bar-icons.h"
#define UNUSED G_GNUC_UNUSED
@ -175,10 +174,7 @@ BuiltinIconInfo;
const BuiltinIconInfo my_builtin_icons [] =
{
{ tr_icon_logo, "transmission-logo" },
{ tr_icon_lock, "transmission-lock" },
{ tr_arrow_down, "tr-arrow-down" },
{ tr_arrow_up, "tr-arrow-up" },
{ tr_yin_yang, "tr-yin-yang" }
{ tr_icon_lock, "transmission-lock" }
};
static void

View File

@ -1,114 +0,0 @@
/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */
#ifdef __SUNPRO_C
#pragma align 4 (tr_arrow_down)
#endif
#ifdef __GNUC__
static const guint8 tr_arrow_down[] __attribute__ ((__aligned__ (4))) =
#else
static const guint8 tr_arrow_down[] =
#endif
{ ""
/* Pixbuf magic (0x47646b50) */
"GdkP"
/* length: header (24) + pixel_data (255) */
"\0\0\1\27"
/* pixdata_type (0x2010002) */
"\2\1\0\2"
/* rowstride (32) */
"\0\0\0\40"
/* width (8) */
"\0\0\0\10"
/* height (12) */
"\0\0\0\14"
/* pixel_data: */
"\212\377\377\377\0\1\13\13\13\377\202\14\14\14\377\1\13\13\13\377\204"
"\377\377\377\0\1\23\23\23\377\202\27\27\27\377\1\23\23\23\377\204\377"
"\377\377\0\1\31\31\31\377\202\36\36\36\377\1\31\31\31\377\204\377\377"
"\377\0\1\35\35\35\377\202\"\"\"\377\1\35\35\35\377\204\377\377\377\0"
"\1\40\40\40\377\202&&&\377\1\40\40\40\377\202\377\377\377\0\3\16\16\16"
"\237\31\31\31\377$$$\377\202)))\377\6$$$\377\31\31\31\377\16\16\16\237"
"\377\377\377@555\342+++\377\202---\377\6+++\377555\342\377\377\377@\377"
"\377\377\0\327\327\327]444\365\202111\377\2""444\365\327\327\327]\202"
"\377\377\377\0\2\377\377\377\6\251\251\251}\202333\377\2\251\251\251"
"}\377\377\377\6\203\377\377\377\0\1\377\377\377\23\202|||\237\1\377\377"
"\377\23\205\377\377\377\0\202\377\377\377&\203\377\377\377\0"};
/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */
#ifdef __SUNPRO_C
#pragma align 4 (tr_arrow_up)
#endif
#ifdef __GNUC__
static const guint8 tr_arrow_up[] __attribute__ ((__aligned__ (4))) =
#else
static const guint8 tr_arrow_up[] =
#endif
{ ""
/* Pixbuf magic (0x47646b50) */
"GdkP"
/* length: header (24) + pixel_data (249) */
"\0\0\1\21"
/* pixdata_type (0x2010002) */
"\2\1\0\2"
/* rowstride (32) */
"\0\0\0\40"
/* width (8) */
"\0\0\0\10"
/* height (12) */
"\0\0\0\14"
/* pixel_data: */
"\213\377\377\377\0\2\5\5\5`\5\5\5_\205\377\377\377\0\1\3\3\3""0\202\17"
"\17\17\377\1\3\3\3""0\203\377\377\377\0\2\1\1\1\20\23\23\23\360\202\30"
"\30\30\377\2\23\23\23\360\1\1\1\20\202\377\377\377\0\2\23\23\23\320\33"
"\33\33\377\202!!!\377\6\33\33\33\377\23\23\23\320\377\377\377\0\17\17"
"\17\237\35\35\35\377$$$\377\202&&&\377\6$$$\377\35\35\35\377\17\17\17"
"\237\377\377\377@\377\377\377f'''\377\202)))\377\3'''\377\377\377\377"
"f\377\377\377@\202\377\377\377\0\1(((\377\202---\377\1(((\377\204\377"
"\377\377\0\1)))\377\202111\377\1)))\377\204\377\377\377\0\1,,,\377\202"
"555\377\1,,,\377\204\377\377\377\0\1///\377\202888\377\1///\377\204\377"
"\377\377\0\204\377\377\377f\202\377\377\377\0"};
/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */
#ifdef __SUNPRO_C
#pragma align 4 (yin_yang)
#endif
#ifdef __GNUC__
static const guint8 tr_yin_yang[] __attribute__ ((__aligned__ (4))) =
#else
static const guint8 tr_yin_yang[] =
#endif
{ ""
/* Pixbuf magic (0x47646b50) */
"GdkP"
/* length: header (24) + pixel_data (403) */
"\0\0\1\253"
/* pixdata_type (0x2010002) */
"\2\1\0\2"
/* rowstride (40) */
"\0\0\0("
/* width (10) */
"\0\0\0\12"
/* height (12) */
"\0\0\0\14"
/* pixel_data: */
"\214\377\377\377\0\2\3\3\3@\11\11\11\300\202\14\14\14\377\2\11\11\11"
"\300\3\3\3@\202\0\0\0\0\25\377\377\377\0\10\10\10\200\20\20\20\377''"
"'\322\276\276\276y\377\377\377fmmm\204\22\22\22\342\10\10\10\200\0\0"
"\0\0\5\5\5@\24\24\24\377\30\30\30\377\322\322\322W\377\377\377\15\377"
"\377\377\0\377\377\377\40\326\326\326c\33\33\33\331\5\5\5@\33\33\33\306"
"\202\35\35\35\377\1HHH\26\203\377\377\377\0\10\377\377\377\6rrr\211\31"
"\31\31\306\34\34\34\377$$$\377!!!\377\26\26\26\301\3\3\3\40\203\377\377"
"\377\0\15\377\377\377\40\30\30\30\377!!!\377)))\377'''\377\40\40\40\377"
"\30\30\30\377\22\22\22\337\6\6\6@\377\377\377\0\0\0\0\0\33\33\33\377"
">>>\331\202,,,\377\11+++\377'''\377\"\"\"\377\35\35\35\361\377\377\377"
"\0\14\14\14P777\331\204\204\204x///\377\203111\377\10///\377+++\365\4"
"\4\4\20!!!\326\202\202\202x\377\377\377\31fff\262444\377\202555\377\17"
"\77\77\77\354kkk\245\"\"\"\321SSS\251\377\377\377\31\377\377\377\0\377"
"\377\3773\233\233\233\214MMM\331777\377444\377555\312\211\211\211}\377"
"\377\3773\0\0\0\0\202\377\377\377\0\2\377\377\377\31\377\377\377L\202"
"\377\377\377f\2\377\377\377L\377\377\377\31\202\0\0\0\0"};

View File

@ -484,17 +484,17 @@ tr_window_new( GtkUIManager * ui_manager, TrCore * core )
w = p->ul_lb = gtk_label_new( NULL );
gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
w = gtk_image_new_from_stock( "tr-arrow-up", (GtkIconSize)-1 );
w = gtk_image_new_from_stock( GTK_STOCK_GO_UP, GTK_ICON_SIZE_SMALL_TOOLBAR );
gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
w = gtk_alignment_new( 0.0f, 0.0f, 0.0f, 0.0f );
gtk_widget_set_usize( w, GUI_PAD, 0u );
gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
w = p->dl_lb = gtk_label_new( NULL );
gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
w = gtk_image_new_from_stock( "tr-arrow-down", (GtkIconSize)-1 );
w = gtk_image_new_from_stock( GTK_STOCK_GO_DOWN, GTK_ICON_SIZE_SMALL_TOOLBAR );
gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
w = gtk_image_new_from_stock( "tr-yin-yang", (GtkIconSize)-1 );
w = gtk_image_new_from_stock( GTK_STOCK_REFRESH, GTK_ICON_SIZE_SMALL_TOOLBAR );
c = gtk_event_box_new( );
gtk_container_add( GTK_CONTAINER(c), w );
w = c;