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 567310 - [cddbslave/vumeter left] Remove libgnome/ui dep
[cddbslave/vumeter left] Remove libgnome/ui dep
Status: RESOLVED FIXED
Product: gnome-media
Classification: Deprecated
Component: CDDBSlave2
2.25.x
Other Linux
: Low minor
: ---
Assigned To: gnome media maintainers
gnome media maintainers
Depends on: 576273
Blocks:
 
 
Reported: 2009-01-10 22:44 UTC by Saleem Abdulrasool
Modified: 2009-07-27 21:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
0001-drop-libgnomeui-dependency-for-gst-props.patch (4.26 KB, patch)
2009-01-10 22:45 UTC, Saleem Abdulrasool
none Details | Review
0001-drop-libgnomeui-dependency-for-gst-props.patch (4.26 KB, patch)
2009-01-10 22:46 UTC, Saleem Abdulrasool
reviewed Details | Review
0001-drop-libgnomeui-dependency-for-gst-props.patch (4.15 KB, patch)
2009-04-04 03:29 UTC, Saleem Abdulrasool
committed Details | Review
remove libgnome from grecord (2.70 KB, patch)
2009-05-01 19:13 UTC, Felix Riemann
none Details | Review
drop libgnome from grecord (+linker) (3.11 KB, patch)
2009-05-01 19:38 UTC, Felix Riemann
committed Details | Review

Description Saleem Abdulrasool 2009-01-10 22:44:59 UTC
The attached patch removes the dependency.
Comment 1 Saleem Abdulrasool 2009-01-10 22:45:35 UTC
Created attachment 126192 [details] [review]
0001-drop-libgnomeui-dependency-for-gst-props.patch
Comment 2 Saleem Abdulrasool 2009-01-10 22:46:00 UTC
Created attachment 126193 [details] [review]
0001-drop-libgnomeui-dependency-for-gst-props.patch
Comment 3 André Klapper 2009-02-03 17:19:54 UTC
ping - can this get a review please?
Comment 4 Jonathan Matthew 2009-03-22 10:58:59 UTC
+    GtkWidget *dialog;
+    dialog = gtk_dialog_new_with_buttons ("Message",
+                                          NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
+                                          GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL);
+    gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+                       gtk_label_new (_("Failure instantiating main window")));
+    g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog);
+    gtk_widget_show_all (dialog);
+

Looks like it'd be simpler to use a GtkMessageDialog here.  It appears you'd also need to do gtk_dialog_run() here, as main() won't enter the mainloop when main_window is NULL.

+  if (! g_option_context_parse (ctx, &argc, &argv, &error)) {
+     g_printerr ("option parsing failed: %s\n", error->message);
+     g_error_free (error);
+     return EXIT_FAILURE;
+  }

I think you'd also need to add the gtk option group to the context here.  It doesn't look like gtk_init would be called otherwise.
Comment 5 Saleem Abdulrasool 2009-04-04 03:29:00 UTC
Created attachment 132057 [details] [review]
0001-drop-libgnomeui-dependency-for-gst-props.patch

Fixes both issues.  Nice catch on the gtk_init issue!
Comment 6 Jonathan Matthew 2009-04-16 13:47:54 UTC
Looks OK to me now, but I'm not a gnome-media maintainer, so that doesn't mean much..
Comment 7 Saleem Abdulrasool 2009-04-17 02:43:34 UTC
Can a gnome-media maintainer okay this for me to push please?
Comment 8 Bastien Nocera 2009-04-17 17:30:54 UTC
Looks fine, though it doesn't actually fix any bugs so it's too late for 2.26. You can commit once all this has been branched.
Comment 9 Marc-Andre Lureau 2009-04-22 19:56:46 UTC
Saleem, please commit in master branch.
Comment 10 Saleem Abdulrasool 2009-04-23 02:41:06 UTC
Pushed,  thanks!
Comment 11 Saleem Abdulrasool 2009-04-23 02:42:13 UTC
Bah, reopening as there are other components which still need to have the dependency removed.
Comment 12 Jonathan Matthew 2009-04-23 02:53:27 UTC
Bug 576273 has my patch to remove libgnome from the media profiles component.
Comment 13 André Klapper 2009-04-23 08:38:19 UTC
(Updating patch status)
Comment 14 Felix Riemann 2009-05-01 19:13:48 UTC
Created attachment 133750 [details] [review]
remove libgnome from grecord
Comment 15 Felix Riemann 2009-05-01 19:19:20 UTC
(In reply to comment #14)
> Created an attachment (id=133750) [edit]
> remove libgnome from grecord
> 

Note that it still links against libgnome
Comment 16 Felix Riemann 2009-05-01 19:38:16 UTC
Created attachment 133753 [details] [review]
drop libgnome from grecord (+linker)

(In reply to comment #15)
> 
> Note that it still links against libgnome

Okay, tried to fix that here. I thought there were global linker flags in gnome-media. Turned out they are sub-project specific mostly. :-)
Comment 17 Marc-Andre Lureau 2009-05-02 12:41:24 UTC
commit 9ce374636ffa2d8071feedaac9ceb753a656fb4f
Author: Marc-André Lureau <marcandre.lureau@gmail.com>
Date:   Sat May 2 15:31:50 2009 +0300

    build: remove libgnomeui definitively

    Closes: http://bugzilla.gnome.org/show_bug.cgi?id=567310

commit 955567c04d815c6abd2ee0ecec55f64c629716f7
Author: Felix Riemann <friemann@svn.gnome.org>
Date:   Fri May 1 20:42:22 2009 +0200

    grecord: remove libgnome dependency

    (help http://bugzilla.gnome.org/show_bug.cgi?id=567310)

    Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>

Comment 18 Marc-Andre Lureau 2009-05-02 13:08:52 UTC
ok, vumeter and cddbslave still depend on gnomeui... changing component/priority/status.

commit d16e4cd15df8f59e3f2cc23afd38a6e4485bd1df
Author: Marc-André Lureau <marcandre.lureau@gmail.com>
Date:   Sat May 2 15:49:29 2009 +0300

    build: oops, cddbslave and vumeter still depends on libgnome/ui
Comment 19 Felix Riemann 2009-07-23 17:29:10 UTC
(In reply to comment #18)
> ok, vumeter and cddbslave still depend on gnomeui... changing
> component/priority/status.
> 

Given the recent discussion on d-d-l regarding these submodules conversion to gtkbuilder, can we assume the same for dropping their libgnome dependency? (That it is not worth the work, as they will likely be dropped for 3.0.)
Comment 20 Felix Riemann 2009-07-23 20:37:54 UTC
(In reply to comment #19)

> Given the recent discussion on d-d-l regarding these submodules conversion to
> gtkbuilder,...

Err, actually I meant the deprecated GTK symbols. Mixed those two up. :-)

Comment 21 Marc-Andre Lureau 2009-07-27 18:38:06 UTC
I think so Felix.
Comment 22 Marc-Andre Lureau 2009-07-27 21:01:07 UTC
commit ce6efc01b852c92db7f783f538b42f82065c11ed
Author: Marc-André Lureau <marcandre.lureau@gmail.com>
Date:   Mon Jul 27 21:56:29 2009 +0300

    Remove vumeter, cddb, and gnome-cd