From: Charles Kerr Date: Fri, 24 Sep 2010 15:22:53 +0000 (+0000) Subject: (trunk) #3577 -- replace gear icon for GTK+, Qt clients X-Git-Tag: 2.10~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d57ba487755dbfa7d4ad06c14d80fcfa8bd1c3b4;p=transmission (trunk) #3577 -- replace gear icon for GTK+, Qt clients --- diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 64b49a760..a8a779bfc 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -36,18 +36,19 @@ noinst_HEADERS = \ details.h \ dialogs.h \ favicon.h \ + file-list.h \ filter.h \ hig.h \ icons.h \ - file-list.h \ - lock.h \ - logo-24.h \ - logo-48.h \ + icon-lock.h \ + icon-logo-24.h \ + icon-logo-48.h \ + icon-ratio.h \ + icon-turtle.h \ + icon-utilities.h \ makemeta-ui.h \ msgwin.h \ notify.h \ - options-icon.h \ - ratio-icon.h \ relocate.h \ stats.h \ torrent-cell-renderer.h \ @@ -58,7 +59,6 @@ noinst_HEADERS = \ tr-prefs.h \ tr-torrent.h \ tr-window.h \ - turtles.h \ ui.h \ util.h diff --git a/gtk/actions.c b/gtk/actions.c index 7a11b5c5c..adb7113c8 100644 --- a/gtk/actions.c +++ b/gtk/actions.c @@ -21,13 +21,13 @@ #include "conf.h" #include "tr-core.h" #include "tr-prefs.h" -#include "lock.h" -#include "logo-24.h" -#include "logo-48.h" -#include "ratio-icon.h" -#include "options-icon.h" -#include "turtles.h" +#include "icon-lock.h" +#include "icon-logo-24.h" +#include "icon-logo-48.h" +#include "icon-ratio.h" +#include "icon-turtle.h" +#include "icon-utilities.h" #define UNUSED G_GNUC_UNUSED @@ -147,7 +147,7 @@ static const BuiltinIconInfo my_fallback_icons[] = { tr_icon_logo_24, TRAY_ICON }, { tr_icon_logo_48, NOTIFICATION_ICON }, { tr_icon_lock, "transmission-lock" }, - { options_icon, "options" }, + { utilities_icon, "utilities" }, { blue_turtle, "alt-speed-on" }, { grey_turtle, "alt-speed-off" }, { ratio_icon, "ratio" } diff --git a/gtk/lock.h b/gtk/icon-lock.h similarity index 100% rename from gtk/lock.h rename to gtk/icon-lock.h diff --git a/gtk/logo-24.h b/gtk/icon-logo-24.h similarity index 100% rename from gtk/logo-24.h rename to gtk/icon-logo-24.h diff --git a/gtk/logo-48.h b/gtk/icon-logo-48.h similarity index 100% rename from gtk/logo-48.h rename to gtk/icon-logo-48.h diff --git a/gtk/ratio-icon.h b/gtk/icon-ratio.h similarity index 100% rename from gtk/ratio-icon.h rename to gtk/icon-ratio.h diff --git a/gtk/turtles.h b/gtk/icon-turtle.h similarity index 100% rename from gtk/turtles.h rename to gtk/icon-turtle.h diff --git a/gtk/icon-utilities.h b/gtk/icon-utilities.h new file mode 100644 index 000000000..87706688a --- /dev/null +++ b/gtk/icon-utilities.h @@ -0,0 +1,63 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +#ifdef __SUNPRO_C +#pragma align 4 (my_pixbuf) +#endif +#ifdef __GNUC__ +static const guint8 utilities_icon[] __attribute__ ((__aligned__ (4))) = +#else +static const guint8 utilities_icon[] = +#endif +{ "" + /* Pixbuf magic (0x47646b50) */ + "GdkP" + /* length: header (24) + pixel_data (833) */ + "\0\0\3Y" + /* pixdata_type (0x2010002) */ + "\2\1\0\2" + /* rowstride (64) */ + "\0\0\0@" + /* width (16) */ + "\0\0\0\20" + /* height (16) */ + "\0\0\0\20" + /* pixel_data: */ + "\206\377\377\377\0\4\203\206\2017\210\213\206\347\210\213\205\347\203" + "\206\2017\211\377\377\377\0\1\203\206\201$\202\377\377\377\0\4\204\207" + "\202y\274\275\270\377\266\270\263\376\204\207\202y\202\377\377\377\0" + "\1\203\206\201$\205\377\377\377\0\14\207\212\205\312\216\220\213\365" + "\207\212\205\232\203\206\201\32\207\212\205\315\301\303\275\377\274\275" + "\270\377\207\212\205\315\203\206\201\32\210\213\206\232\211\213\206\364" + "\210\213\206\312\203\377\377\377\0\16\200\203~%\215\220\213\365\320\322" + "\316\377\246\250\242\366\210\213\206\355\233\236\231\365\303\305\277" + "\377\302\304\276\377\237\242\234\365\212\215\210\355\257\261\254\367" + "\322\324\317\377\207\212\205\364\200\203~%\203\377\377\377\0\3|\177z" + "\240\247\251\244\367\321\322\315\377\202\273\276\267\377\7\302\305\277" + "\377\307\312\304\377\314\317\311\377\320\322\315\377\324\325\321\377" + "\253\255\251\366}\200{\240\204\377\377\377\0\14npl\36{}x\354\273\276" + "\267\377\304\306\300\377\245\250\243\372{}z\360|~z\357\255\257\253\372" + "\331\332\326\377\321\323\317\377}\177{\354npl\36\202\377\377\377\0\7" + "dgb7fidyjmg\320\221\224\216\366\312\315\306\377\255\257\252\373ilg\262" + "\202dgb\33\16ilg\262\254\256\251\373\313\315\307\377\220\223\215\366" + "ilg\320fidydgb7egc\350\260\262\256\376\273\274\267\377\311\314\307\377" + "\331\332\326\377wxu\360[]Y\36\202\377\377\377\0\16[]Y\36qsn\357\314\315" + "\311\377\272\274\265\377\264\266\260\377\254\255\250\376ad_\347]^[\350" + "\262\263\256\376\275\275\271\377\320\322\316\377\341\342\337\377wxv\360" + "RSP#\202\377\377\377\0\16RSP#lnj\360\317\321\314\377\272\275\266\377" + "\263\264\257\377\251\252\246\376YZW\347HJF7LNJyQSO\320\222\224\220\366" + "\333\335\331\377\277\300\275\375OQL\277\202HJF'\7NPK\277\261\263\256" + "\375\310\312\305\377|~x\366OQL\320KMIyHJF7\202\377\377\377\0\14\77@=" + "\36WXT\354\304\306\277\377\340\341\335\377\300\300\275\376qrn\361opm" + "\361\272\274\270\376\337\340\334\377\260\263\253\377RSO\354\77@=\36\204" + "\377\377\377\0\14FGD\240\217\220\214\367\311\311\305\377\260\263\253" + "\377\313\314\307\377\334\335\331\377\335\336\332\377\314\315\310\377" + "\260\263\252\377\310\312\305\377\204\205\200\366DFB\240\203\377\377\377" + "\0\16<=:%HIF\364\312\313\306\377\204\205\200\366OQM\354vxr\366\272\274" + "\266\377\267\272\264\377vxr\366OQM\354\214\215\210\367\307\311\303\377" + "EFC\364<=:%\203\377\377\377\0\14DEB\312EFC\364DFB\240<=:\36CDA\320\264" + "\266\260\377\254\255\247\377CEA\320<=:\36DFB\240EFC\364DEB\312\205\377" + "\377\377\0\1<=:%\202\377\377\377\0\4\77@=y\252\253\247\377\240\241\234" + "\376\77@=y\202\377\377\377\0\1<=:%\211\377\377\377\0\4<=:7GIE\350DFB" + "\347<=:7\206\377\377\377\0"}; + + diff --git a/gtk/main.c b/gtk/main.c index 9551ff8d2..bffa7bf40 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -471,7 +471,7 @@ onRPCChanged( tr_session * session, } if( changed ) - changed_keys = g_slist_append( changed_keys, key ); + changed_keys = g_slist_append( changed_keys, (gpointer)key ); } tr_sessionGetSettings( session, oldvals ); diff --git a/gtk/options-icon.h b/gtk/options-icon.h deleted file mode 100644 index fa29a17b4..000000000 --- a/gtk/options-icon.h +++ /dev/null @@ -1,66 +0,0 @@ -/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ - -#ifdef __SUNPRO_C -#pragma align 4 (my_pixbuf) -#endif -#ifdef __GNUC__ -static const guint8 options_icon[] __attribute__ ((__aligned__ (4))) = -#else -static const guint8 options_icon[] = -#endif -{ "" - /* Pixbuf magic (0x47646b50) */ - "GdkP" - /* length: header (24) + pixel_data (1159) */ - "\0\0\4\237" - /* pixdata_type (0x2010002) */ - "\2\1\0\2" - /* rowstride (80) */ - "\0\0\0P" - /* width (20) */ - "\0\0\0\24" - /* height (20) */ - "\0\0\0\24" - /* pixel_data: */ - "\260\377\377\377\0\1""5552\202sss\377\1""5552\205\377\377\377\0\202\0" - "\0\0\0\204\377\377\377\0\6\0\0\0\1LLLbbbb\260\25\25\25\22\0\0\0\2ppp" - "\250\202\256\256\256\377\6ppp\250\0\0\0\2\25\25\25\22bbb\261^^^\241\0" - "\0\0\1\202\0\0\0\0\203\377\377\377\0\7\0\0\0\1HHHd\204\204\204\377\230" - "\230\230\377lll\360RRR\205\220\220\220\377\202\215\215\215\377\10\220" - "\220\220\377RRR\205lll\360\230\230\230\377\224\224\224\377ZZZ\242\0\0" - "\0\1\0\0\0\0\203\377\377\377\0\7\0\0\0\3zzz\273\231\231\231\377\217\217" - "\217\377\237\237\237\377\206\206\206\377\221\221\221\377\202\206\206" - "\206\377\10\221\221\221\377\206\206\206\377\237\237\237\377\217\217\217" - "\377\221\221\221\377\216\216\216\301\0\0\0\4\0\0\0\0\203\377\377\377" - "\0\7\0\0\0\4\207\207\2078~~~\361\200\200\200\377\202\202\202\377~~~\377" - "KKK\377\202333\377\10KKK\377~~~\377\202\202\202\377\200\200\200\377~" - "~~\361jjj0\0\0\0\5\0\0\0\0\203\377\377\377\0\7\0\0\0\2\23\23\23\15jj" - "j\215yyy\377nnn\377DDD\377PPP\270\2022229\10PPP\270DDD\377nnn\377yyy" - "\377jjj\215\23\23\23\15\0\0\0\2\0\0\0\0\202\377\377\377\0\10\0\0\0\1" - "000BIII\244fff\377sss\377YYY\377VVV\270\0\0\0\24\202\0\0\0\14\10\0\0" - "\0\24VVV\270YYY\377sss\377fff\377III\244000B\0\0\0\1\202\377\377\377" - "\0\10\0\0\0\3bbb\377{{{\377\177\177\177\377mmm\377YYY\377&&&1\0\0\0\7" - "\202\0\0\0\1\10\0\0\0\7&&&1YYY\377mmm\377\177\177\177\377{{{\377bbb\377" - "\0\0\0\3\202\377\377\377\0\3\0\0\0\10\203\203\203\377ttt\377\203fff\377" - "\2...)\0\0\0\1\202\377\377\377\0\2\0\0\0\1...)\203fff\377\3ttt\377\203" - "\203\203\377\0\0\0\10\202\377\377\377\0\3\0\0\0\7CCCCXXX\254\202```\377" - "\3mmm\377\\\\\\\263\0\0\0\1\202\377\377\377\0\3\0\0\0\1\\\\\\\263mmm" - "\377\202```\377\3XXX\254CCCC\0\0\0\7\202\377\377\377\0\10\0\0\0\3\0\0" - "\0\14\0\0\0\26OOO\217YYY\377```\377}}}\377ccc\261\202FFF\40\10ccc\261" - "}}}\377```\377YYY\377OOO\217\0\0\0\26\0\0\0\14\0\0\0\3\203\377\377\377" - "\0\3\0\0\0\2\10\10\10\32GGG\361\202SSS\377\2^^^\377www\377\202\215\215" - "\215\377\2www\377^^^\377\202SSS\377\4GGG\361\10\10\10\32\0\0\0\2\0\0" - "\0\0\203\377\377\377\0\3\0\0\0\2""888\264aaa\377\212MMM\377\4aaa\377" - "888\264\0\0\0\2\0\0\0\0\203\377\377\377\0\6\0\0\0\4sss\202III\377FFF" - "\377EEE\361===\221\204FFF\377\7===\221EEE\361FFF\377III\377hhh\264\0" - "\0\0\5\0\0\0\0\203\377\377\377\0\7\0\0\0\3XXX\27""666q<<<\271\23\23\23" - "(\0\0\0\31;;;\253\202@@@\377\10;;;\253\0\0\0\31\23\23\23(<<<\271;;;\253" - "nnn\36\0\0\0\4\0\0\0\0\203\377\377\377\0\7\0\0\0\1\0\0\0\6\0\0\0\17\0" - "\0\0\22\0\0\0\14\0\0\0\13\33\33\33A\202999\377\10\33\33\33A\0\0\0\13" - "\0\0\0\14\0\0\0\23\0\0\0\22\0\0\0\10\0\0\0\1\0\0\0\0\204\377\377\377" - "\0\3\0\0\0\1\0\0\0\3\0\0\0\4\202\0\0\0\2\1\0\0\0\14\202\0\0\0\30\1\0" - "\0\0\14\202\0\0\0\2\3\0\0\0\5\0\0\0\4\0\0\0\1\202\0\0\0\0\211\377\377" - "\377\0\1\0\0\0\3\202\0\0\0\7\1\0\0\0\3\205\377\377\377\0\202\0\0\0\0" - "\1\377\377\377\0"}; - - diff --git a/gtk/tr-window.c b/gtk/tr-window.c index ecbecbbed..b34dc8de8 100644 --- a/gtk/tr-window.c +++ b/gtk/tr-window.c @@ -640,7 +640,7 @@ tr_window_new( GtkUIManager * ui_mgr, TrCore * core ) gtk_container_set_border_width( GTK_CONTAINER( h ), GUI_PAD_SMALL ); w = gtk_button_new( ); - gtk_container_add( GTK_CONTAINER( w ), gtk_image_new_from_stock( "options", GTK_ICON_SIZE_SMALL_TOOLBAR ) ); + gtk_container_add( GTK_CONTAINER( w ), gtk_image_new_from_stock( "utilities", GTK_ICON_SIZE_SMALL_TOOLBAR ) ); gtr_widget_set_tooltip_text( w, _( "Options" ) ); gtk_box_pack_start( GTK_BOX( h ), w, 0, 0, 0 ); gtk_button_set_relief( GTK_BUTTON( w ), GTK_RELIEF_NONE ); diff --git a/gtk/utilities.png b/gtk/utilities.png new file mode 100644 index 000000000..6f845c03a Binary files /dev/null and b/gtk/utilities.png differ diff --git a/qt/application.qrc b/qt/application.qrc index 3c1c20c24..e1bc18ce2 100644 --- a/qt/application.qrc +++ b/qt/application.qrc @@ -9,6 +9,6 @@ icons/turtle-grey.png icons/turtle-blue.png icons/lock.png - icons/info-options.png + icons/utilities.png diff --git a/qt/icons/info-options.png b/qt/icons/info-options.png deleted file mode 100644 index 7e54f754a..000000000 Binary files a/qt/icons/info-options.png and /dev/null differ diff --git a/qt/icons/utilities.png b/qt/icons/utilities.png new file mode 100644 index 000000000..6f845c03a Binary files /dev/null and b/qt/icons/utilities.png differ diff --git a/qt/mainwin.cc b/qt/mainwin.cc index 69288bfdb..a0323ef8b 100644 --- a/qt/mainwin.cc +++ b/qt/mainwin.cc @@ -361,8 +361,8 @@ TrMainWindow :: createStatusBar( ) h->setSpacing( HIG::PAD_SMALL ); p = myOptionsButton = new TrIconPushButton( this ); - p->setIcon( QIcon( ":/icons/options.png" ) ); - p->setIconSize( QPixmap( ":/icons/options.png" ).size() ); + p->setIcon( QIcon( ":/icons/utilities.png" ) ); + p->setIconSize( QPixmap( ":/icons/utilities.png" ).size() ); p->setFlat( true ); p->setMenu( createOptionsMenu( ) ); h->addWidget( p ); diff --git a/utils/show.c b/utils/show.c index d7def137b..f930ed12a 100644 --- a/utils/show.c +++ b/utils/show.c @@ -22,7 +22,7 @@ #include #include #include -#include /* tr_webGetResponseStr */ +#include /* tr_webGetResponseStr() */ #include #define MY_NAME "transmission-show"