dockapp, gtk updating dockapp to gtk2 or gtk3
I got this one dockapp that is not behaving absolutely the way I believe it should. it is called "minicontrol" that shows the then and two buttons one for WPref the other is to display a ShutDown,restart,cancel message box window.
When the second button is pressed to shutdown, or reboot. that window and another window gets displayed. the second window that shows up is like another dockapp and takes its place in the dockapp area. Which is no big deal if one is shutting down or rebooting, because it will go away along with the entire desktop. BUT, if cancel is selected that is when I get upset. The extra dockapp window that shows up with the message selection box window, (or whatever it is called) does not go away. this is the sniplet of code that fires off the box and how it deals with the cancle button part. Code:
gtk_signal_connect (GTK_OBJECT(button3), "clicked", GTK_SIGNAL_FUNC(exitwidget), dialog); as I have been googling around looking for a way to fix it. Seeing that it is Code:
gtk_signal_connect is deprecated and should not be used in newly-written code. Because if I take on this task, I thought to just fix that one thing, why not just updated the entire file which is only approx 400 lines of code. so it complies and works with the gtk that is being used today. Code:
$ whereis gtk-3.0 Code:
Code:
/* Code:
$ make |
Code:
pkg-config --cflags gtk+-2.0 Code:
... Code:
#include <gtk/gtk.h> |
Quote:
thanks. Let me give that a try. |
well it got rid of that where is it error,
Code:
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: /tmp/ccmxkEpS.o: undefined reference to symbol 'XSetCommand' |
Maybe add -lX11 to gcc options (before pkg-config gtk...)
or ' pkg-config --libs x11 ' but it's same thing :) |
Quote:
as it stands it should be all the gtk gdk functions are obsolete or deprecated so it should keep failing until I get all of the new functions and whatever else gtk updated in the code before it works again. |
If there is a linking error again, add -lX11 after ' pkg-config --cflags --libs gtk+-2.0 ' at gcc command line
I wrongly suggested the opposite in previous post |
Quote:
Code:
DEFINE = -D__CONFPATH='"$(CONFIGPATH)"' -D__CONFFILE='"$(CONFIGFILE)"' Code:
userx@slackwhere101:~/Documents/minicontrol |
All times are GMT -5. The time now is 05:23 PM. |