Forums » Bugs

Linux Updater Small Bug

Jan 24, 2005 roguelazer link
The updater in Linux always starts scrolled all the way to the bottom. This is rather annoying. Also, any word on that possible GTK2 version we were discussing awhile back? I'm going to go have to play with glade-2 if you guys don't give a definite word, and bad things happen when I play with UI designs!
Jan 25, 2005 The Noid link
And the updater isn't resizable. Personally I find that very annoying as it's kinda small on 1600x1200 with a big font.
Could you remove the non-resizable flag pretty please? :)
Jan 25, 2005 roguelazer link
To do that they'd need to dock all the controls so that they auto-resize on form resize, which I don't think they've done.
Jan 25, 2005 a1k0n link
Yeah, I don't know why it scrolls to the bottom automatically, actually. The gtk+ edit control does that for me when I add the text for some reason and I never figured out how to prevent that.

And it's not resizable, and it doesn't give you a progress indicator while patching, and it doesn't warn you if you don't have enough space, and sometimes it unnecessarily redownloads the entire friggin' game. Yes, there are a few updater maintenance items on my list.

The window is theoretically resizable.. it is gtk+, after all, which means everything is stuck inside a hbox or vbox which can resize roughly correctly. The Windows version OTOH is more work to make resize. No clue what would be involved for the Mac version.
Jan 25, 2005 roguelazer link
Maybe you should open up your updater protocol and hold an updater contest. I made a replacement for the Windows one awhile ago using C# which was prettier and resizeable, but it didn't do much good because i'm far too lazy to use a network sniffer to try to decipher your protocol.
Jan 25, 2005 mr_spuck link
> and it doesn't warn you if you don't have enough space, and
> sometimes it unnecessarily redownloads the entire friggin' game

That's why the thing corruptted my installation with every damn update! My hd was full. -.-

/me kicks a1k0n :P
Jan 26, 2005 Solra Bizna link
If it uses a nib, on the Mac it's easy. Just set the resizing flags on the main text thingie to resize horizontal/vertical, and set the buttons at the bottom, the progress bar, etc. to have a variable distance from the top and resize horizontally. It sounds complex, but it's quite intuitive thanks to Interface Builder...
-:sigma.SB
Jan 26, 2005 mr_spuck link
Played around a bit... :)

gtk_editable_set_position(GTK_EDITABLE(textfieldwidget), 0);
after all the text is loaded should move the scrollbar to the top. (worked in my little testapp atleast)

http://developer.gnome.org/doc/API/gtk/gtkeditable.html#GTK-EDITABLE-SET-POSITION

EDIT:

or:
gtk_text_freeze(GTK_TEXT(textwidget));
bla ..display text ..bla
gtk_text_thaw(GTK_TEXT(textwidget));

That'd prevent the scrollbar from moving down at all.