After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 120175 - Progress bar caption not persistant (update GimpStatusbar API)
Progress bar caption not persistant (update GimpStatusbar API)
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
1.x
Other All
: Normal normal
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
: 120426 127041 128674 132171 141718 141888 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-08-18 19:58 UTC by Phil Harper
Modified: 2004-07-14 16:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch that makes gimpstatusbar independent from gtkstatusbar (34.10 KB, patch)
2004-06-17 15:45 UTC, geert jordaens
none Details | Review
Basic gimpstatusbar wo resize grip. (20.35 KB, patch)
2004-06-19 13:01 UTC, geert jordaens
none Details | Review

Description Phil Harper 2003-08-18 19:58:25 UTC
if you rezise the image window, or zoom in/out during a plug-in operation
the status text will revert from the name of the filter to the name of the
image.
Comment 1 Michael Natterer 2003-08-25 13:50:45 UTC
The problem is that Gtkstatusbar has no API to replace text
that is somewhere in the middle of the message stack, not on
top of it.

Will probably have to drop deriving GimpStatusbar from
GtkStatusbar and add a gimp_statusbar_replace() which
does exactly that.
Comment 2 Michael Natterer 2003-08-25 13:51:35 UTC
*** Bug 120426 has been marked as a duplicate of this bug. ***
Comment 3 Sven Neumann 2003-11-15 11:57:46 UTC
*** Bug 127041 has been marked as a duplicate of this bug. ***
Comment 4 Michael Natterer 2003-12-06 16:13:31 UTC
*** Bug 128674 has been marked as a duplicate of this bug. ***
Comment 5 Raphaël Quinet 2004-01-13 17:06:34 UTC
Updating the subject so that it is easier to find this bug report.
Comment 6 Dave Neary 2004-01-22 09:27:08 UTC
*** Bug 132171 has been marked as a duplicate of this bug. ***
Comment 7 Dave Neary 2004-02-27 10:14:45 UTC
Bumping to 2.2, since it seems unlikely this will be started (never
mind finished) before 2.0 comes out.

Dave.
Comment 8 Sven Neumann 2004-05-05 10:29:50 UTC
*** Bug 141888 has been marked as a duplicate of this bug. ***
Comment 9 Sven Neumann 2004-05-15 18:09:44 UTC
*** Bug 141718 has been marked as a duplicate of this bug. ***
Comment 10 geert jordaens 2004-06-15 20:12:52 UTC
would it be helpfull if I started with this.

The plan : 

derive GimpStatusbar from GtkHBox.
copy the functionality from GtkStatusbar to GimpStatusbar            

files to modify :

./app/display/gimpstatusbar.h
./app/display/gimpstatusbar.c
./app/display/gimpdisplayshell.c

./plug-ins/imagemap/imap_statusbar.c

Comment 11 geert jordaens 2004-06-15 20:49:21 UTC
Just realized that the GimpStatusbar as it is defined now is a part of the
display shell or. So it cannot be used by a plugin if I would just copy the
functionality in.

Probably renaming  GimpStatusbar to GimpDisplayStatusbar and create a new 
widget GimpStausbar would be the better solution.
impact : ./app/display/gimpdisplayshell-cursor.c
         ./app/display/gimpdisplayshell-title.c
         ./app/display/gimpdisplayshell.c
         ./app/display/display-types.h
         ./app/display/gimpprogress.c
         ./app/display/gimpstatusbar.h
         ./app/display/gimpstatusbar.c
         ./app/tools/gimppainttool.c
         ./app/tools/gimptool.c

libgimwidgets :
        ./libgimpwidgets/gimpwidgetstypes.h
        ./libgimpwidgets/gimpwidgets.def
Comment 12 geert jordaens 2004-06-15 20:50:27 UTC
Just realized that the GimpStatusbar as it is defined now is a part of the
display shell or. So it cannot be used by a plugin if I would just copy the
functionality in.

Probably renaming  GimpStatusbar to GimpDisplayStatusbar and create a new 
widget GimpStausbar would be the better solution.
impact : ./app/display/gimpdisplayshell-cursor.c
         ./app/display/gimpdisplayshell-title.c
         ./app/display/gimpdisplayshell.c
         ./app/display/display-types.h
         ./app/display/gimpprogress.c
         ./app/display/gimpstatusbar.h
         ./app/display/gimpstatusbar.c
         ./app/tools/gimppainttool.c
         ./app/tools/gimptool.c

libgimwidgets :
        ./libgimpwidgets/gimpwidgetstypes.h
        ./libgimpwidgets/gimpwidgets.def
Comment 13 Sven Neumann 2004-06-16 11:57:17 UTC
Why do you want to move this functionality into libgimpwidgets at all? I doubt
that it is useful for GIMP plug-ins.
Comment 14 geert jordaens 2004-06-16 13:12:42 UTC
Apparently the imagemap is using GtkStatusbar.
Don't think that justifies the amount of work to create a full
featured widgets thoug. Consider the second post as a remark.

btw : My first proposal is up and running at my system (port everything from 
GtkStatusbar to GimpStatusbar). The second would 



Comment 15 geert jordaens 2004-06-17 15:45:32 UTC
Created attachment 28803 [details] [review]
patch that makes gimpstatusbar independent from gtkstatusbar

first start
Comment 16 Sven Neumann 2004-06-19 10:09:12 UTC
Looks good as a first start. But you should probably remove the resize_grip
functionality which isn't needed in GimpStatusbar. It adds quite some
complexity. If you remove it, you won't need
gimp_statusbar_set_has_resize_grip() and you don't need to implement
size_allocate, button_press, expose_event, size_request, [un]map, [un]realize
and direction_changed. So basically you can remove a good deal of code before we
start to add new stuff.
Comment 17 geert jordaens 2004-06-19 13:01:13 UTC
Created attachment 28857 [details] [review]
Basic gimpstatusbar wo resize grip.

Removed the resize-grip
Comment 18 Sven Neumann 2004-06-19 13:32:52 UTC
I've did some minor cleanups in gimpstatusbar.[ch]. If you can't wait till
tomorrow, feel free to ask me to mail you the file.

2004-06-19  Sven Neumann  <sven@gimp.org>

	Applied a patch from Geert Jordaens that implements the
	GtkStatusbar functionality in GimpStatusbar so that we can redo it
	in order to fix bug #120175:

	* app/core/gimpmarshal.list: added VOID: UINT, STRING.

	* app/display/gimpstatusbar.[ch]: copied GtkStatusbar code.

	* app/display/gimpdisplayshell.c: changed accordingly.
Comment 19 Michael Natterer 2004-07-14 16:37:47 UTC
Fixed in CVS:

2004-07-14  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpstatusbar.[ch]: massively changed: removed
	message_ids, the message mem chunk and all signals. Added new
	function gimp_statusbar_replace() which updates a message without
	moving it to the top of the stack. Fixes bug #120175.

	* app/display/gimpdisplayshell-title.[ch]: renamed
	gimp_display_shell_update_title() to
	gimp_display_shell_title_update() and switched from pop()/push()
	to replace() so the title message keeps its place in the stack.
	Added new function gimp_display_shell_title_init() which push()es
	the title message to the stack.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): call
	gimp_display_shell_title_init() so the "title" message is at the
	bottom of the stack.

	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell-handlers.c: changed accordingly.