Fix some unused variables.

Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>

        * demos/gtk-demo/menus.c (do_menus): Fix some unused
        variables.

        * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
        variable warning
This commit is contained in:
Owen Taylor 2003-10-23 03:20:54 +00:00 committed by Owen Taylor
parent d7c1842b55
commit 3724a591d8
7 changed files with 42 additions and 4 deletions

View File

@ -1,3 +1,11 @@
Tue Oct 21 16:12:51 2003 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/menus.c (do_menus): Fix some unused
variables.
* gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
variable warning.
Thu Oct 23 00:04:50 2003 Matthias Clasen <maclas@gmx.de>
* NEWS: Partial update for 2.3.0.

View File

@ -1,3 +1,11 @@
Tue Oct 21 16:12:51 2003 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/menus.c (do_menus): Fix some unused
variables.
* gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
variable warning.
Thu Oct 23 00:04:50 2003 Matthias Clasen <maclas@gmx.de>
* NEWS: Partial update for 2.3.0.

View File

@ -1,3 +1,11 @@
Tue Oct 21 16:12:51 2003 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/menus.c (do_menus): Fix some unused
variables.
* gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
variable warning.
Thu Oct 23 00:04:50 2003 Matthias Clasen <maclas@gmx.de>
* NEWS: Partial update for 2.3.0.

View File

@ -1,3 +1,11 @@
Tue Oct 21 16:12:51 2003 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/menus.c (do_menus): Fix some unused
variables.
* gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
variable warning.
Thu Oct 23 00:04:50 2003 Matthias Clasen <maclas@gmx.de>
* NEWS: Partial update for 2.3.0.

View File

@ -1,3 +1,11 @@
Tue Oct 21 16:12:51 2003 Owen Taylor <otaylor@redhat.com>
* demos/gtk-demo/menus.c (do_menus): Fix some unused
variables.
* gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
variable warning.
Thu Oct 23 00:04:50 2003 Matthias Clasen <maclas@gmx.de>
* NEWS: Partial update for 2.3.0.

View File

@ -77,8 +77,6 @@ do_menus (void)
GtkWidget *box1;
GtkWidget *box2;
GtkWidget *button;
GtkWidget *optionmenu;
GtkWidget *separator;
if (!window)
{

View File

@ -1027,8 +1027,6 @@ gtk_set_locale (void)
gchar *
_gtk_get_lc_ctype (void)
{
gchar *p;
#ifdef G_OS_WIN32
/* Somebody might try to set the locale for this process using the
* LANG or LC_ environment variables. The Microsoft C library
@ -1040,6 +1038,8 @@ _gtk_get_lc_ctype (void)
* don't have to clickety-click in the Control Panel, you can simply
* start the program with LC_ALL=something on the command line.)
*/
gchar *p;
p = getenv ("LC_ALL");
if (p != NULL)
return g_strdup (p);