I'm trying to figure out how to make a GtkWindow behave like a panel
(ie. gnome-panel). I've looked at the gnome-panel code, but I have no
idea even where to begin. I already have the window being non-decorated
and the same width of the screen. However, how do I make it "reserve"
the edge of the
> Another solution for applications is to look at argv[0]. On
> Windows this is always (I think) the full path to the .exe.
Looking at argv[0] is really not recommended on Windows. If memory
serves me right, if the path to the application has spaces in it, it
might even be that depending on the ph
Dan McMahill writes:
> On windows, it is easy for the user to pick a different place to
> install so I need to set those variables.
> So my question is how do gtk apps ported to windows typically deal with
> something like that?
Typically they assume that all the application's data files are
David Necas (Yeti) wrote:
>
>Or have a look at g_win32_get_package_installation_directory().
>Calling it with NULL arguments is usually sufficient. *Not*
>storing the directory in registry has the advantage the app
>can be moved around freely without breaking it (of course,
>if it's not prevented
On 11/5/05, David Necas (Yeti) <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 05, 2005 at 03:40:40PM +0100, Goran Rakić wrote:
> >
> > Put this first:
> >
> > ... (some win32 registry code) ...
>
> Or have a look at g_win32_get_package_installation_directory().
Very neat. Another solution for applicatio
On 05.11.2005., at 16.09, David Necas (Yeti) wrote:
g_win32_get_package_installation_directory
I did not know for this function. It is nice to have it around.
Goran Rakic
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mai
On Sat, Nov 05, 2005 at 03:40:40PM +0100, Goran Rakić wrote:
>
> Put this first:
>
> ... (some win32 registry code) ...
Or have a look at g_win32_get_package_installation_directory().
Calling it with NULL arguments is usually sufficient. *Not*
storing the directory in registry has the advantage
Put this first:
#ifdef WIN32
# include
# include
#endif
And latter in your code...
#ifdef WIN32
// Fallback value: data in working dir
char dbpath[MAX_PATH]="data";
HKEY hkResult;
DWORD DataType;
DWORD DataCount = MAX_PATH;
// Open registry key
if (RegOpen
Hi,
Not sure if this is the right list or not for this question.
I have a gtk+ app developed for NetBSD/Linux/Solaris. I just ported it
to windows with almost no pain thanks to gtk for win32. I even made an
installer with NSIS. The problem I have though is that my program has 2
directories
Hi all,
I have a function for creating and adding GtkRadioMenuItems into a menu,
something like this:
/* Global vars */
static GtkWidget *menu;
static GSList *list = NULL;
void add_item(myobj *obj, GCallback callback)
{
GtkWidget *menu_item;
menu_item = gtk_radio_menu_item_new_w
10 matches
Mail list logo