[Debichem-devel] Bug#488469: gperiodic: Use appropriate menu icons

Theppitak Karoonboonyanan thep at linux.thai.net
Sun Jun 29 07:30:28 UTC 2008


Package: gperiodic
Version: 2.0.10-4
Severity: minor
Tags: patch

GPeriodic currently uses "open file" icon for "Exit", and "help" for
"About". This can be confusing, as it's not consistent with general GTK+
apps.

Instead, GTK_STOCK_QUIT should be used for the Exit menu, and
GTK_STOCK_ABOUT for About.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=th_TH.UTF-8, LC_CTYPE=th_TH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gperiodic depends on:
ii  libc6                         2.7-12     GNU C Library: Shared libraries
ii  libglib2.0-0                  2.16.3-2   The GLib library of C routines
ii  libgtk2.0-0                   2.12.10-2  The GTK+ graphical user interface 
ii  libpango1.0-0                 1.20.3-2   Layout and rendering of internatio

gperiodic recommends no packages.

-- no debconf information
-------------- next part --------------
#! /bin/sh /usr/share/dpatch/dpatch-run
## 19_fix_menu_icons.dpatch by Theppitak Karoonboonyanan <thep at linux.thai.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Use appropriate stock icons in menu.

@DPATCH@
diff -urNad gperiodic-2.0.10~/gperiodic.c gperiodic-2.0.10/gperiodic.c
--- gperiodic-2.0.10~/gperiodic.c	2008-06-29 13:28:02.000000000 +0700
+++ gperiodic-2.0.10/gperiodic.c	2008-06-29 13:28:19.000000000 +0700
@@ -269,8 +269,8 @@
   GtkActionEntry entries[] = {
 	{ "FileMenu", NULL, _("_File") },
 	{ "HelpMenu", NULL, _("_Help") },
-	{ "Exit", GTK_STOCK_OPEN, _("E_xit"), "<control>Q", _("Exit the program"), (GCallback) menu_file_exit },
-	{ "About", GTK_STOCK_HELP, _("_About"), "<control>H", _("About gperiodic"), (GCallback) menu_help_about },
+	{ "Exit", GTK_STOCK_QUIT, _("E_xit"), "<control>Q", _("Exit the program"), (GCallback) menu_file_exit },
+	{ "About", GTK_STOCK_ABOUT, _("_About"), "<control>H", _("About gperiodic"), (GCallback) menu_help_about },
   };
 
   char *ui_description =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debichem-devel/attachments/20080629/790c8853/attachment.pgp 


More information about the Debichem-devel mailing list