Treferwynd / transmission-remote-gtk

Automatically exported from code.google.com/p/transmission-remote-gtk
GNU General Public License v2.0
0 stars 0 forks source link

GTK-3 doesn't work unique instance #201

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ubuntu Precise 64b
Gnome-shell 3.4.1
transmission-remote-gtk svn version (updated/compiled today)

It opens a new transmission-remote-gtk instance for each torrent that I sent it.

Original issue reported on code.google.com by si...@j1s.es on 2 Jun 2012 at 12:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You can always revert the last change temporarily. I'll fix this when I have 
the spare time and want to.

I have just double checked, and while I could reproduce the previous issue 
before the fix it works fine for me now. It may sound obvious, but make sure 
it's a build of the latest source that build is open and also it's installed to 
where your browser is opening. Also that you make clean and ./configure 
--enable-gtk3 before building.

As I can't reproduce it, you may need to help me narrow it down. Looking at the 
code path... First thing is check you're using the right implementation. In 
main.c, replace this:

#ifdef WIN32
    exitCode = trg_win32_init(client, argc, argv, args);
#else
    trg_non_win32_init();
#if !GTK_CHECK_VERSION( 3, 0, 0 ) && HAVE_LIBUNIQUE
    exitCode = trg_libunique_init(client, argc, argv, args);
#elif GTK_CHECK_VERSION( 3, 0, 0 )
    exitCode = trg_gtkapp_init(client, argc, argv);
#else
    exitCode = trg_simple_init(client, argc, argv, args);
#endif
#endif

with this:

    exitCode = trg_gtkapp_init(client, argc, argv);

Original comment by a...@eth0.org.uk on 3 Jun 2012 at 9:51

GoogleCodeExporter commented 9 years ago
Actually, replace it with this instead:

trg_non_win32_init(); 
exitCode = trg_gtkapp_init(client, argc, argv);

Original comment by a...@eth0.org.uk on 3 Jun 2012 at 9:57

GoogleCodeExporter commented 9 years ago
Sorry, sorry and sorry again...
I had compiled with "--enable-gtk3" but, for some unknown reason, it didn't 
compiled well.
I've uninstalled the compiled version, I have deleted the source folder and I 
have downloaded the source again from git, I have compiled again with 
"--enabkle-gtk3" and now it works perfect.
Sorry again for this erroneous bug.

Original comment by si...@j1s.es on 3 Jun 2012 at 10:26

GoogleCodeExporter commented 9 years ago

Original comment by a...@eth0.org.uk on 3 Jun 2012 at 10:26