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 598444 - Use GtkSpinner
Use GtkSpinner
Status: RESOLVED FIXED
Product: nemiver
Classification: Other
Component: general
0.7.x
Other All
: Normal normal
: ---
Assigned To: Nemiver maintainers
Nemiver maintainers
Depends on:
Blocks: 613178
 
 
Reported: 2009-10-14 15:40 UTC by Bastien Nocera
Modified: 2011-03-23 20:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use Gtk::Spinner instead of custom spinner widget (45.07 KB, patch)
2011-03-22 15:32 UTC, Kalev Lember
none Details | Review
Use Gtk::Spinner instead of custom spinner widget (45.01 KB, patch)
2011-03-23 00:35 UTC, Kalev Lember
none Details | Review

Description Bastien Nocera 2009-10-14 15:40:48 UTC
Instead of a copied around spinner widget.

See https://bugzilla.gnome.org/show_bug.cgi?id=319607
Comment 1 Kalev Lember 2011-03-22 15:32:19 UTC
Created attachment 184086 [details] [review]
Use Gtk::Spinner instead of custom spinner widget

    * src/uicommon/nmv-spinner-tool-item.[cc,h]: Rewrote to use
    Gtk::Spinner instead of EphySpinner.
    * src/persp/dbgperspective/nmv-dbg-perspective.cc: Adapt to
    nmv-spinner-tool-item changes.
    * src/uicommon/ephy-spinner-tool-item.[c,h]:
    * src/uicommon/ephy-spinner.[c,h]:
    * src/uicommon/nmv-spinner.[cc,h]: Removed EphySpinner and its C++
    wrappers.
    * src/uicommon/Makefile.am: Removed references to deleted files.
    * configure.ac: Bumped gtkmm minimum version to 2.20.

I have started working on Nemiver's GTK+ 3 port and getting rid of EphySpinner should make porting easier.
Comment 2 Dodji Seketeli 2011-03-22 23:29:40 UTC
[...]

diff --git a/src/uicommon/nmv-spinner-tool-item.cc b/src/uicommon/nmv-spinner-tool-item.cc
index 1b6f24e..893051f 100644
--- a/src/uicommon/nmv-spinner-tool-item.cc
+++ b/src/uicommon/nmv-spinner-tool-item.cc
@@ -22,120 +22,50 @@

[...]

-SpinnerToolItem::~SpinnerToolItem ()
+SpinnerToolItem::SpinnerToolItem () :
+    Gtk::ToolItem ()

I think the 'Gtk::ToolItem ()' mem-initializer is not necessary here,
Just doing away with it should work because the sub-object of the
Gtk::ToolItem base class would then be default-initialized.

Other than that, the patch look good to me.

Once you've addressed my comment above, you can commit the patch to
the git master branch and close the bug as fixed.

Thank you very much for the patch!
Comment 3 Dodji Seketeli 2011-03-22 23:35:04 UTC
> I have started working on Nemiver's GTK+ 3 port

Woohoo.  Thank you for that!

Maybe you could add a little comment to
https://bugzilla.gnome.org/show_bug.cgi?id=633546 to avoid duplicated
efforts?  Not that people are going to rush for this but hey, who
knows :-)
Comment 4 Kalev Lember 2011-03-23 00:35:17 UTC
Created attachment 184142 [details] [review]
Use Gtk::Spinner instead of custom spinner widget

(In reply to comment #2)
> +SpinnerToolItem::SpinnerToolItem () :
> +    Gtk::ToolItem ()
> 
> I think the 'Gtk::ToolItem ()' mem-initializer is not necessary here,
> Just doing away with it should work because the sub-object of the
> Gtk::ToolItem base class would then be default-initialized.

Agreed. Thanks for the review!

I have attached an updated patch. I don't however have a GNOME git account, would you mind committing it for me?
Comment 5 Dodji Seketeli 2011-03-23 20:42:38 UTC
OK, I have committed the patch into master the master branch.  The
commit hash is b4bdfe9.

I have just edited the commit log to comply with the rules explained
in git-commit-messages.README.

Thank you very much!