[Frugalware-darcs] fw-control-center: gnetconfig: use interface specific icons

Priyank priyank at frugalware.org
Wed Jul 4 08:20:46 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=fw-control-center;a=darcs_commitdiff;h=20070704061922-5ce2c-edca391d001837f5cca3fc29aee62c06e3a82d6d.gz;

[gnetconfig: use interface specific icons
Priyank <priyank at frugalware.org>**20070704061922
 * use different icons for wired and wireless interfaces.
 * use better icons for indicating up/down status of interfaces.
] {
hunk ./gnetconfig/Makefile.am 7
-icon_DATA	= data/gnetconfig.png data/network-up.png data/network-down.png
+icon_DATA	= data/gnetconfig.png data/network-up.png data/network-down.png \
+			  data/gnetconfig-wired.png data/gnetconfig-wireless.png
addfile ./gnetconfig/data/gnetconfig-wired.png
binary ./gnetconfig/data/gnetconfig-wired.png
oldhex
*
newhex
*89504e470d0a1a0a0000000d49484452000000300000003008060000005702f987000000047342
*4954080808087c086488000000097048597300000dd700000dd70142289b780000001974455874
*536f667477617265007777772e696e6b73636170652e6f72679bee3c1a00000a59494441546881
*ed9a7f4c5c5516c7bff7bd37bf981f0c85969f32ad50d77680b5d26ea99616d8d25d25032ac4a6
*c6ddb8a689c66ddd1fba71b3167fedaa35aedd8dcdeec6a8fb47d56d431604a6db5f2824b61d2a
*059ab680b6501b7e5967866180c70c306fdebbfb07f3c61966a0505a1b134f72726778f79d773e
*f79e7bce7d772094527c9f85b9d50e2c567e00b8d5b260004208292c2ce46e8633d72364218bd8
*62b1fcd26834bec3f3fcb02449afaad5eaf7aaaaaa7c37d1bf6bcabc01cacaca2a7fb621f19547
*9ffc0b788f80aaaa2a343535f512425e191b1bdbdfd4d4e4bfc9be46956b02141616723a9dee9d
*929f663dfec4d66140704358f12aa036616060001f7df411ce9c39d30de0a5dcdcdc832fbef8a2
*f4ddb83e2d7302949595e929a5ff7d62dbaaad5bcbff08327c1cdc57cf0384832fe3ef908c0520
*84a0a7a7071f7cf001bababa3a09212fd4d7d77f4cbfa302332b80c5624925841cfedde3eb730a
*577e053a3500ff8ad74089065cef4b10630be04ffc1528a5208400003a3a3af0e1871fe2ca952b
*ed94d24aabd57af896003cf0c003d9000ebfbc6b7d5a76c13380b316cce54a800a1032df8668dc
*02f93e4a69506590b6b636ecdfbf1f76bbddc630cceebababaa6ef0ca0b4b47433c771f56f3d77
*8f6185ae13d4ef8198f91600094cffdb1097fc1ca2213f2a80ac0cc3409224d86c361c3870006e
*b7bb916198cadada5adb4d07b0582ca776efde7dcf4fd6e50203ff00e9dd0b70b1f09b0f4052af
*0c73743600f91ac330f0fbfd686c6c445555152626260e03a8acafaf6fbf510011858c10a271bb
*dd18fcfa1b48a93b21e5d4801af301463da721411030393919fc4e2985288a2084a0b8b818fbf6
*ed434545c5fd4aa5b2b5b4b4b4bab4b4d47c2300a285d0891d3b766c94240919191958bd7af59c
*a32c49127c3e1f140a0508219024093c3f8e98184d1044eecbb22c789e87d56ac5b163c7244992
*0e524a5fb25aadddd70b106d2be1f5fbfd6018061d1d1db0d9660f5b4a290441083a2f3b191767
*84288af078bc117d351a0db66fdf8ebd7bf7329b366d7a8461982e8bc5f27e494989e986001042
*3c82208061a62f0d0c0ce0f8f1e398395381bef0f984e035190200b45a2de2e397c0ebf5c2ebfd
*16449eb1d8d858ecd8b1037bf6ece1d6ae5dfb38cbb2974a4b4bf72c1a00811908756674741456
*ab352cc665d1e9b4f0f97ce0793e02821082848404c4c7c7c3ed7687dd2f8a22a6a6a690909080
*a79f7e1a9595954a954af55c4949c95d8b05181919198156ab05cbb2c13ffa7c3e1c3972046eb7
*3be206b55a8d989818f4f70f40108408089665613299a0d3e9e0703820084218c8c8c8085c2e17
*589605cbb28a4501504affd5d0d0e0ba74e912929292a0507c6b4f9224343535a1afaf2fd210c3
*2025251976bb03fdfdfd111000a0d3e970e79d778252607070109224c1e3f1c06ab5626c6c0c82
*204092a489450158add62eafd75b70e8d0a1be96961624262642a55285f5696b6b436767675483
*8989cba0d56ad1d2720663637c040400242727213b3b1b2ed7303efdb4116eb71b841088a20800
*de48abb34b441a2584300014ebd7af4f5fba74e9c7b9b9b9e6a2a2220c0f0f6362227c70121313
*9197971735c5fafd7e74767641a3d1202bcb1c96a9425bafd70b9bcd06a77308070f1e8042a148
*a9aeaebe3a5f80686b8000603efffc737b7777b7a5b5b5d556575707a3d1089d4e17d6d16eb7e3
*934f3e812445eea05996454e4e366262343876ec38fafbfb239c07a6b3d5962d5b603018909191
*019665173403d15e0de5b926172f5ee4ed76fb239224fdd3e3f1dc5f5e5e0e9665313a3a1aecec
*f17870f4e85114141440ad8eacd629292930180c686d6dc5e5cb97b16edd3a180c8608189d4e8b
*55ab5683e3b805bd18450b210e800280526ed56ab52a3f3fffe5e4e4e45f3cfcf0c3605936221b
*1142b061c306c4c5c545dd2b89a2089bad193ccf232b2b0bd9d959c12cd7d7d78753a76c70b95c
*533b77fe7aee3dcb3c00d850e7433f1715153d959090f0db6ddbb641afd7c3e5728515384208cc
*6633d2d3d32300bef8e20b34363642a3d1203e3e0106831e06432cfc7e010e871300303636fafa
*ae5dbbfeb4580012e2f84c55dc7befbd15cb962d7be1c1071f64535353e1743a23d6407a7a3acc
*667310e0dcb973f8ecb3cf82fda60bdcd2e09aa294c2e572bdfbecb3cffc1e808f523aef8382a8
*2f348490d0d18fd0bbefbebb303535f5f5fbeebb4fbd6ad52a381c0e390506252e2e0e79797968
*696941737373d876e3ebafaf62787818696969d0ebf5b0dbed703a9d138220bcd3d7d7f7c6f9f3
*e78628a5f35a0bb301300054734198cde635cb972fffeba64d9b62f3f2f2222a2c00381c8eb0b5
*4208c16db7dd86e6e6d370b95c617d150a05589685cfe7ebf7783c8f1e3d7ae414a5347c54e60b
*1078983c0bb382984ca60cb3d9bc77cd9a3549c5c5c570b95c989a9a0adab870e102944a2580e9
*4a9d9e9e8ec9c9c940eafdf6b94aa5126ab51a6ab51a4aa512a3a323fe9191d1e759967db3a6a6
*7acec381b94ee6fc0115423e87696f6fef95b367cf3ed5dedefe556d6d2d626363a1d168420701
*c0744d58be7c39789e474343038687876b87869c6f514a4709214100ad360606432c3233efe06e
*bffdf6371886f9f7430f9593998e85caac478494524a08f10720194cd78708bd7af5ea371e8f67
*a7288aaf793c9ebbe45a313e3e0e4208140a054c2613ec763b4e9e3c89a1a1a1ff9c3c79f27d00
*beb8b825ffcbcdcdddce71dca37abd5ea352a9a1d56aa1d7ebb06cd95251a7d3593a3a3a7602d8
*379b9fd73cd80ad48559b392dcaad56aedc68d1b7727252515c8b5a2adad0d191919e8ededc5e9
*d3a7a9d3e97cb7b9b9b91ad3b32aab2f333373694ece8ff79a4c26735a5aaa6834c651bd5ecf8e
*8c8c78bbbb7b2ef6f474ffa1a6a6baf1ba0042205488521b02ad028082e338557e7efe6f121212
*ca2b2a2a4029c5975f7e89f6f676717070f06f6d6d6d0d00448487a70040d06ab574f3e6cd3bef
*b8e347e52b57ae8c512a9554108409afd7ebeeeeee6e72381c6fd4d4545fb92e800084ec6828c0
*4ce50070f9f9f98fc5c7c73fb962c50af4f4f4f8060606fe7cf6ec591b0029a06208880ce10720
*14176f2dcbc9c97e2c3939255692a8d7eff7bbc6c7f9cb5d5d5df58490ba9a9aeab0a233ef6372
*4aa940089100d0804a33540c40f84f9c38f15e5e5ede00cff36b9d4e67c3f9f3e7cfc96642ee95
*01c4503b0d0dc7ab388ef31142ee8f89d18152694892e8a0c16010789e4f00e0081bd8851e6106
*6ac4cc19e0425a0e001bd09909407e980c100a120c2b954a25592c96b2b4b4f49500b14b92d43f
*3e3e76c9ed760f0018aaa9a90efab3e01f2a28a51280494248a8038a402b3b2fb7330182661019
*4eb24a535353feaeaeae430a85728342a1b0f33cdf07c05d53533d1e31a08b3944965f7e1039fa
*5cc071192234f5ca0033c3500e27b9150a0b8b96188dc6a980f351b7168b020801610310a1a31f
*1a4604d18b66b475140ca9acac2ce1c2850b73fede70430082c6a667247426e45990016656d5d0
*a4101a9222a677a5d774ee860284199e9e15399442d70210bea0e5509221c4f9ee44819b0810f6
*90e94d51a886c2c8e14303096261b67ff857835b2c3f00dc6af9de03fc1f3f5c369e2cfa2cdc00
*00000049454e44ae426082
addfile ./gnetconfig/data/gnetconfig-wireless.png
binary ./gnetconfig/data/gnetconfig-wireless.png
oldhex
*
newhex
*89504e470d0a1a0a0000000d49484452000000300000003008060000005702f987000000047342
*4954080808087c086488000000097048597300000dd700000dd70142289b780000001974455874
*536f667477617265007777772e696e6b73636170652e6f72679bee3c1a00000a35494441546881
*d59a5b6c54d51ac77f6beddbccb4d32942155bb00585805c6aa840a910e46234bec839dece7940
*63e1c4e083f120896fc7185f497cf0c11c51a3d11334484ed21e8958624030d05a2c7233726bc0
*5268b5a597e9b433b3f75ee761cf0c73ef500dc62f59d9b775f9ffffebfbbeb5f69e114a29fecc
*26ff6800bfd5fef404f4420fde78e30d7df6ecd92f6b9af617c771962aa502b71318809472544a
*79c2719cddcdcdcdef0139fe2ef2c5c0ae5dbbe6ebbafebf9a9a9a594b962cf1575454a0eb05b9
*22849832c8623168db36c3c3c374767646060606ce28a536353737f71625b067cf1e736c6cecc7
*c6c6c639f3e7cf17e1709868348aebba45414f9544f6f8e9d7524a7c3e1f81408053a74e395d5d
*5ddfbff0c20b2b499b891c59c3e1f0bfeaeaeaaae7cd9b27fafafa88c7e319e00a9d1724e138a0
*69b70c3e793e313141241261c99225da952b57167df0c1075b9b9b9b77152420a57cb6bebede37
*3232826ddb08214a26c08d1be8274fa29d3c09bdbd88ebd791fdfd1ea0ea6adc993351f7de8bb3
*7c39ce82058802c4b249c562312291080f3ef860a0adadedef407e02efbefbaea1ebfa3dc16090
*c1c1c10c90054900f2ec59b46fbe415cba849898404c4c40f26818e0ba3030800c87513d3dc8f6
*768cca4a9c65cbb01f7904a64d432995ea37fd3c69d16894502884ebba0fa4dfcf20609ae674c0
*9152e2ba6e41f553f77a7b310e1d425cbe0c13139eab4889d23484aee356554165254422881b37
*c07511ba8ed234b06db4932791172ee0ae5a85ddd40496559088ebba188681ebbac18204b22d1b
*703a19edf469b463c7607cdc03ae695053833b7f3eeec285a859b3203b7385c3c873e790a74f23
*2e5c800440d1d58579ed1af1c71ff7086759be19294a20a97c5ef595423b7e1cce9d03293de077
*dd85bb7a356adebc9bf5f3751c0ca21a1a701a1a3c573b7204d1d585d0750887d1f6edc35dbf1e
*75f7dd29d0c5c01724904d26fd284f9c40f4f67a831a06aaa101f7810740ca5b4ba57e3feec68d
*88152b90fbf621c2614f9ca34771d6ae85e9d3f3e2c8b6a25b891cf057ae2006063c3fb62c4fad
*860684a665d42da5a4fa0d85709f7a0a35772ec230404ab41f7e4046a345814f4a207b40393282
*eced451a064ad7a1a9096a6b73eaa6ae6ddbab7ffc38e2ec59c4d010224b94541bc3c05db70e66
*cdf2482885fcf1c754fd6c774eb7822e94e17f4a21ae5ff782d27561ce1ca8ae4ef97946e7972f
*238f1c812b57bcec138d7a6d0c03150aa1162d820d1b2090b5b5d234545313e2e851443c8e9a98
*400c0ca066cc987a0ca45c271cbe09221080b97373800bdb86ce4ec48913303404a3a3100ea3c6
*c7bdf4699a108f23bfff1e75f52a3cf6186ace9cccb46918b074299c3a85300ce4afbfe24e9f8e
*9aea0ca4cec7c6c034114ae1d6d622b3b2938ac5e0d021c4f5eb88781c6231282f87da5ad4cc99
*303c0c57af22fafabcf5627818d1d6866a6c442c5dea814f1299360daaaabcf42c04321cc6ada8
*c8c1541201a514c27120e1a7cab290a15046674208c4c58b88a4d286817ae20958b6cc7b9edee9
*c8087cfe39a2b717e53888b367e19e7b3cd009534a79c42f5e4498266e345a340626cf428e03a6
*89f4f910d3a6e566931b371083831e499f0f9e7b0ed1d0903ffb8442882d5b106bd722a4f4ca99
*33e0389982949521834194612094f284b9550229ff9712619a9e7f9697e7aa3f30009ae6658fa6
*26a8a8983c85ae5e8da8a9f19242348a181ccccd64959508d344589647a280e510c8597d75ddf3
*7f9f0fa1eb19e0554239611888aa2ae49c3999e400befb0efafb33c1691a3cf410d2b23c901313
*39c2289f0fe1f38169a2a69285923180a6212ccb3b662f424a816982cf872a2bcb086ee271dccd
*9b51dddda069c8575e413cf3cccdf63366e0fafd089f2f2544ba29c3f084b32c6491b7c1496340
*089172919c95594a84dfef95acf8505f7fed8107701cd4279f20929b3721bcd5fbce3bbdf540d3
*72d614a9eba919f84d0b598a4842850c17310c080410b6ed6d91d301545692f1121a0c66bcc028
*a53cf5751d110840c2e5529b38213cf0147f6f2e6d06d2aeb3ef8bb232282f4766b9975cb50a7b
*fd7ae24af1ab94682fbd94d92e9172653088160ae50671dae6704a69341b785ef0892017e5e529
*3748019192ffd6d7f3cffbee63755f1f3d757599d9281af532564505caef2f08b6d0f9a4044aed
*4c08e1a5baf27288c532eeb7b6b6f2d8b3cff2d7a79fe6d34f3fbdf94c29443ceead0bc1604e6c
*4d3676c9040a01cf3b1b86e1055d62d18944221c3c789077de7907800f3ffcd0ab07de76231844
*969515ed33df75c904b21b15eb38c3f7136bc581030758b972253b76ece0cb2fbfa4a7a787ce8e
*0eafaecfe725803ce2940a7c5202853a2929b085a0a5a5858d1b37f2fefbefe3f7fbd9ba752bff
*d9bd3b159c93a99e0fcb2d1328b5c36c30b66dd3dadacace9d3bb9fffefb696f6f67c78e1decdd
*bb37e3435929ee326517ca07b8d4d9387cf8308661108d46e9e9e9e1b3cf3e434ac982050bf8ea
*abaf7204c8775de85ec9040a352e65365a5a5a78edb5d7e8eaeae2e1871fa6adad8dc6c6467efa
*e927de7aebaddfac7a4904a64222b97ab7b4b4b069d326eaeaea58b3660dd5d5d5002c5ebc98ae
*ae2e8686860a822c157849048a59a1813a3b3b098542b4b7b7b361c306d6ad5b87aeeb1c3c7890
*d6d6561e7df451f6ecd993f3b57baaf6bbfc42e3ba2eb1588cf1f17176efde4d7777379b376fa6
*bfbf9feddbb7535f5fcfb56bd7b874e9129b366de2e38f3f666c6c8c4824422c164b91b955f5a1
*840f5b93996ddb388e932afbf7efe7d5575f45d775fafafae8e8e8a0afaf8f5f7ef985fefe7e46
*4747d1759df3e7cf53575787a669e8ba8ea66968257cad2e4a607474f4462010d0933b42b7c8ab
*5c7287a894c2755d5cd7a5b7b717dbb6d9b2650b8ee3108fc753c48410188681528a37df7c9303
*070ed0dcdc9c318ea66905779e42081cc7414a19c9b89fdde0a38f3eea7ef2c927eba494c4127b
*9bec92ec3019b4b66d63db76ca95001cc749114b0791fcf26d59564afd64490a922e4eb2589645
*381ce68b2fbe38f2fcf3cfafc93b0300f1787cdf993367feb17cf972231e8fe7553d3b0d9aa699
*fcf49d3abaae9b01269b44d26da49439fd679f4b29b12c8b6fbffd767c686868bf10c2524a4573
*080821fc2b56acd8f9e28b2ffe6df6ecd977cc9c399368348ae338a9178d4233917401d334b335
*c96bf994ce278ea6695896457777b7eaeeeeee7ffdf5d77703654208472965eb69950560767474
*c4172e5cb84d29f5efc58b17972d5ab4c8f0fbfd194add2e735d974824c2b163c762e7cf9f1fd8
*bb77eff6e1e1610db012c51669cc25509128c19a9a9abbb66ddbf6725555559394f20e4dd39cdb
*4dc0711ce938cec0cf3fff7cf8edb7df7e6f646464101805468021a5542423888510654030ad04
*007f2814a2b6b6b6e27613b878f1e2c8d8d8980ec48071209c28a3c0a052cac9262081f2440900
*3ec0046cf2fc4a7e1b4c024662fc2489313cf036e449a38920f2e111b0f002dd017e9fb5ffd64c
*07b4c4f8713cf5c79552292c79ff6a907ae8cd8886a7fe1f3503e089e7e4c3fa7f571451065289
*21fc0000000049454e44ae426082
hunk ./gnetconfig/src/gnetconfig-interface.c 41
+#define IFACE_WIRED "/share/pixmaps/gnetconfig-wired.png"
+#define IFACE_WIRELESS "/share/pixmaps/gnetconfig-wireless.png"
hunk ./gnetconfig/src/gnetconfig-interface.c 384
-	GdkPixbuf		*yes_pixbuf;
-	GdkPixbuf		*no_pixbuf;
hunk ./gnetconfig/src/gnetconfig-interface.c 386
+	GdkPixbuf		*wired_pixbuf;
+	GdkPixbuf		*wireless_pixbuf;
hunk ./gnetconfig/src/gnetconfig-interface.c 396
-	up_pixbuf = gdk_pixbuf_new_from_file_at_size (ptr, 24, 24, NULL);
+	up_pixbuf = gdk_pixbuf_new_from_file_at_size (ptr, 26, 26, NULL);
hunk ./gnetconfig/src/gnetconfig-interface.c 399
-	dn_pixbuf = gdk_pixbuf_new_from_file_at_size (ptr, 24, 24, NULL);
+	dn_pixbuf = gdk_pixbuf_new_from_file_at_size (ptr, 26, 26, NULL);
+	g_free (ptr);
+	ptr = g_strdup_printf ("%s%s", PREFIX, IFACE_WIRED);
+	wired_pixbuf = gdk_pixbuf_new_from_file_at_size (ptr, 26, 26, NULL);
+	g_free (ptr);
+	ptr = g_strdup_printf ("%s%s", PREFIX, IFACE_WIRELESS);
+	wireless_pixbuf = gdk_pixbuf_new_from_file_at_size (ptr, 26, 26, NULL);
hunk ./gnetconfig/src/gnetconfig-interface.c 407
-	yes_pixbuf = gtk_widget_render_icon (GTK_WIDGET(gn_interface_treeview),
-					GTK_STOCK_YES,
-					GTK_ICON_SIZE_MENU, NULL);
-	no_pixbuf = gtk_widget_render_icon (GTK_WIDGET(gn_interface_treeview),
-					GTK_STOCK_NO,
-					GTK_ICON_SIZE_MENU, NULL);
hunk ./gnetconfig/src/gnetconfig-interface.c 416
+		if (!fwnet_is_wireless_device(interface->name))
+			gtk_list_store_set (store, &iter, 0, wired_pixbuf, -1);
+		else
+			gtk_list_store_set (store, &iter, 0, wireless_pixbuf, -1);
+
hunk ./gnetconfig/src/gnetconfig-interface.c 425
-				gtk_list_store_set (store, &iter, 0, up_pixbuf, 2, yes_pixbuf, 3, " UP", -1);
+				gtk_list_store_set (store, &iter, 2, up_pixbuf, 3, " UP", -1);
hunk ./gnetconfig/src/gnetconfig-interface.c 427
-				gtk_list_store_set (store, &iter, 0, dn_pixbuf, 2, no_pixbuf, 3, " DOWN", -1);
+				gtk_list_store_set (store, &iter, 2, dn_pixbuf, 3, " DOWN", -1);
hunk ./gnetconfig/src/gnetconfig-interface.c 431
-			gtk_list_store_set (store, &iter, 0, dn_pixbuf, 2, no_pixbuf, 3, " DOWN", -1);
+			gtk_list_store_set (store, &iter, 2, dn_pixbuf, 3, " DOWN", -1);
hunk ./gnetconfig/src/gnetconfig-interface.c 437
-	g_object_unref (yes_pixbuf);
-	g_object_unref (no_pixbuf);
+	g_object_unref (wired_pixbuf);
+	g_object_unref (wireless_pixbuf);
}


More information about the Frugalware-darcs mailing list