Wrong usize despite my best efforts!
- From: Filipe Bonjour <bonjour ime unicamp br>
- To: GTK List <gtk-list gnome org>
- Subject: Wrong usize despite my best efforts!
- Date: Thu, 6 Sep 2001 23:22:35 -0300 (EST)
Hi,
I've got problem setting the size of my application (one of my firsts
with Gnome, so please bear with me!). It looks for a preference
"geometry=<width>x<height>" in !/.gnome/<myapp> throuhg the command
gnome_config_get_string("geometry=800x500");
Now, if I call the program for the first time it opens OK with the right
size, 800x500. Then suppose I resize the window. Then, when it quits, it
saves the geometry at that point, say 1000x800.
Now, I remove the file ~/.gnome/<myapp> and restart the app. But instead
of the default 800x500 as the first time, it still opens with the
"modified" geometry, 1000x800.
I know everything goes OK, because when I debug the program it reads the
default geometry, creates the GnomeApp widget and calls
gtk_window_set_usize with the right parameters (800, 500) -- still when
the window shows up it's 1000x800.
I guess Gnome (or Sawmill) remembered the state of the program as it had
last quit and butted in. Is that it? How can I tell it not to do that?
I'm not using GnomeClients or anything supposed to communicate with the
session manager (or so I think).
Thanks in advance,
Fil
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]