Re: localization patch for app-helper [Was: Re: help on child menus]
- From: Jaka Mocnik <jaka mocnik kiss uni-lj si>
- To: mclos000 correu udg es
- CC: gnome-devel-list gnome org
- Subject: Re: localization patch for app-helper [Was: Re: help on child menus]
- Date: Sat, 10 Jul 1999 08:55:01 +0200
mclos000@correu.udg.es wrote:
>
> Yes John, you are right, I found this this morning...
> And I found this mail tonight.
> I have applied the patch Jaka wrote. I applies cleanly against
> gnome-libs-1.0.11. I compiled it, installed it, and now the gnome-hello-7-mdi
> will work ok with the "es" locale (It was failing also with "fr" but I supose its
> fixed too).
> ... BUT, I have one "new" problem with my app. It now shows the children menu
> ("Hijos") but does
> some strange things. This is in more detail:
fixed this also. bring your gnome-libs up-to-date with this morning's
CVS (or apply the patch below, it should work against 1.0.11).
jaKa
--
w3: http://pluton.ijs.si/~jaka
email: jaka.mocnik@kiss.uni-lj.si
Index: gnome-mdi.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/gnome-mdi.c,v
retrieving revision 1.78
diff -u -r1.78 gnome-mdi.c
--- gnome-mdi.c 1999/06/15 21:10:25 1.78
+++ gnome-mdi.c 1999/07/10 06:46:13
@@ -678,7 +678,7 @@
static GtkWidget *book_create (GnomeMDI *mdi)
{
- GtkWidget *us, *rw;
+ GtkWidget *us;
us = gtk_notebook_new();
@@ -770,8 +770,6 @@
static gint app_close_top (GnomeApp *app, GdkEventAny *event, GnomeMDI *mdi)
{
GnomeMDIChild *child = NULL;
- GList *child_node;
- gint handler_ret = TRUE;
if(g_list_length(mdi->windows) == 1) {
if(!gnome_mdi_remove_all(mdi, FALSE))
@@ -945,6 +943,8 @@
g_list_free(menu_list);
}
+ else
+ gtk_object_set_data(GTK_OBJECT(app), GNOME_MDI_ITEM_COUNT_KEY, GINT_TO_POINTER(items));
}
}
}
@@ -985,8 +985,6 @@
{
GtkWidget *window;
GnomeApp *app;
- GtkMenuBar *menubar = NULL;
- GtkToolbar *toolbar = NULL;
GtkSignalFunc func = NULL;
GnomeUIInfo *ui_info;
@@ -1475,7 +1473,6 @@
gint gnome_mdi_remove_all (GnomeMDI *mdi, gint force)
{
GList *child_node;
- GnomeMDIChild *child;
gint handler_ret = TRUE;
g_return_val_if_fail(mdi != NULL, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]