Re: Window move at menubar in Gnome

2010-07-06 Thread Andreas Volz
Am Mon, 05 Jul 2010 19:30:53 -0600 schrieb Michael Torrie:

 On 07/05/2010 01:53 PM, Andreas Volz wrote:
  since I installed Ubuntu 10.04 I noticed that I could move windows
  while dragging the menubar in Gnome. I like this feature. But I
  don't use Gnome, but Enlightenment 17. I would like to implement
  support for this feature in E17, but I don't know which calls are
  behind this on X level. I tried to find some documentation about
  it, but failed. Before I start to dig into Gtk+ code I hope
  someone on this list could answer this question.
  
  Please ignore this question. It was a theme problem. I solved it.
 
 Which theme?  None of the themes I use ona regular basis seem to
 support this operation.

The Ubuntu 10.04 default theme has these feature. I tested some Ubuntu
themes that have this feature:

- Ambiance
- Dust
- Dust Sand
- Radiance

You could identify the themes because window frame a menubar look like
one single bar.

regards
Andreas
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Window move at menubar in Gnome

2010-07-05 Thread Andreas Volz
Am Sun, 4 Jul 2010 13:51:31 +0200 schrieb Andreas Volz:

 Hello,
 
 since I installed Ubuntu 10.04 I noticed that I could move windows
 while dragging the menubar in Gnome. I like this feature. But I don't
 use Gnome, but Enlightenment 17. I would like to implement support for
 this feature in E17, but I don't know which calls are behind this on X
 level. I tried to find some documentation about it, but failed. Before
 I start to dig into Gtk+ code I hope someone on this list could answer
 this question.

Please ignore this question. It was a theme problem. I solved it.

regards
Andreas
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Window move at menubar in Gnome

2010-07-04 Thread Andreas Volz
Hello,

since I installed Ubuntu 10.04 I noticed that I could move windows
while dragging the menubar in Gnome. I like this feature. But I don't
use Gnome, but Enlightenment 17. I would like to implement support for
this feature in E17, but I don't know which calls are behind this on X
level. I tried to find some documentation about it, but failed. Before
I start to dig into Gtk+ code I hope someone on this list could answer
this question.

regards
Andreas
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Speeding Up libglade

2009-04-06 Thread Andreas Volz
Am Sun, 05 Apr 2009 16:03:54 +0200 schrieb arne:

 Hello,
 
 I want to run my application on a Embedded System with a weak CPU.
 
 Compared to another program which I build earlier with Glade2 the
 start time of my actual application is appreciable slower.
 
 I read the Article
 http://syslog.movial.fi/uploads/compiled-libglade.pdf. Does anyone
 know where can I get this build of libglade or if there exist a patch?
 
 Is there another way to speed up libglade?

Maybe you could try to link your glade XML file into your application.
I've done it with this script:

http://pastebin.com/f677a2f2

And run it with:

$ perl bin2hex.pl myfile.glade 1 my_glade_data  myglade.h

and then this code:

#ifdef GLADE_HEADER_COMPILE
#include myglade.h // this is created with bin2hex.pl
#else
#define GLADE_FILE myfile.glade
#endif

Glib::RefPtrGnome::Glade::Xml createGlade (const Glib::ustring root,
 const Glib::ustring domain)
{
#ifdef GLADE_HEADER_COMPILE
  return Gnome::Glade::Xml::create_from_buffer(
 my_glade_data, my_glade_data_size,
 root, domain);
#else
  return Gnome::Glade::Xml::create(
 searchGladeFile (GLADE_FILE), root, domain);
#endif
}

const std::string searchGladeFile (const std::string glade_file)
{
  vector string name_vector;

  name_vector.push_back (glade_file);
  name_vector.push_back (../ + glade_file);
  name_vector.push_back (src/ + glade_file);
  // TODO: src dir variable...
  name_vector.push_back (string (PACKAGE_DATA_DIR) + /glade/ + glade_file);

  return searchFile (name_vector);
}

const std::string searchFile (std::vector std::string name_vector)
{
  struct stat buf;

  for (unsigned int i = 0; i  name_vector.size (); i++)
  {
string try_name = name_vector[i];

bool found = !(stat (try_name.c_str (), buf));

if (found)
{
  return try_name;
}
  }

  return ;
}

I used it to hide a glade XML in a commercial application, but maybe you
could save loading time on your embedded hardware.

regards
Andreas
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Simple Questions.

2008-04-19 Thread Andreas Volz
Am Sat, 19 Apr 2008 04:03:03 -0400 schrieb Schumi Imor:

 I'm thinking of using GTK+ for one of my projects and I'm really
 impressed with the level of support and example code out there. But
 what I haven't been able to find is how to create an application
 without a frame (no name, no close, no maximize, no edges). Any help
 or example code would be appreciated...

Search for the gtk wheelbarrow example. That one should fit.

regards
Andreas
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: gtk + autoconf

2008-04-06 Thread Andreas Volz
Am Sat, 5 Apr 2008 13:22:25 -0700 schrieb Daniel Fetchinson:

 Hi folks,
 ...
 I got this by copying configure.ac from some other project. As you can
 see the X dependencies are there but how do I put in the right gtk
 flags and dependencies?
 
 Sorry if this is off topic but autoconf and friends seem like a giant
 forest and I'm kinda lost :)

Hello Daniel,

I suggest using Anjuta[1] for building Gtk applications. This is a full
featured IDE with integrated debugger, Glade based GUI editor and
autotools support. You don't need to have any knowledge of it. Maybe
later if you like to do some advanced stuff, but it's really easy to
get a basic app working. Use the last stable version 2.4.0. Maybe
you've to compile it from source if your distribution doesn't provide
it.

regards
Andreas

[1] http://www.anjuta.org/
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: pango package for win32 broken

2008-03-23 Thread Andreas Volz
Am Sun, 23 Mar 2008 00:57:32 +0200 schrieb Tor Lillqvist:

   The module directory is not present in the zip file.
 
 The modules that are part of Pango are built-in in the corresponding
 DLLs.
 
   Because of this no fonts are
   rendered and only a missing char (small box) is displayed for each
  char.
 
 That is caused by something else then. Do you get any error messages
 or warnings? What is the first one?
 
 You could also try running some simple test program with the
 environment variable PANGO_WIN32_DEBUG set to some non-empty value and
 see if you get some hint from the output that generates. Preferably
 compare to what output you get on a machine where it works.

I made a mistake. For a short test I started the gtk-demo in wine on
Linux and hoped it might work. I missed to tell this (not unimportant)
in my E-Mail. :-)

Now I repeated the test in real windows and it works. But it's
interesting that it doesn't work with wine. Look here:

http://img525.imageshack.us/img525/3493/gtkdemowinegc7.jpg

and on the terminal:

(gtk-demo.exe:8): Pango-WARNING **: couldn't load font Sans
Not-Rotated 10, falling back to Sans Not-Rotated 10, expect ugly
output.

(gtk-demo.exe:8): Pango-WARNING **: All font fallbacks failed

(gtk-demo.exe:8): Pango-WARNING **: failed to find shape engine, expect
ugly output. engine-type='PangoRenderWin32', script='latin'

(gtk-demo.exe:8): Pango-WARNING **: All font fallbacks failed



(gtk-demo.exe:8): Pango-WARNING **: couldn't load font Sans
Not-Rotated 18, falling back to Sans Not-Rotated 18, expect ugly
output.


(gtk-demo.exe:8): Pango-WARNING **: All font fallbacks failed



(gtk-demo.exe:8): Pango-WARNING **: couldn't load font Sans 10,
falling back to Sans 10, expect ugly output.

(gtk-demo.exe:8): Pango-WARNING **: All font fallbacks failed

...

Any ideas what is missing to get it running in wine? I don't really
need it, because my app is available native on Linux, but it may be for
testing.

regards
Andreas
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


pango package for win32 broken

2008-03-22 Thread Andreas Volz
Hello,

are you aware that the pango package for win32[1] is broken? The module
directory is not present in the zip file. Because of this no fonts are
rendered and only a missing char (small box) is displayed for each char.

I tried to compile gtk+ and so pango and all deps with a cross
compiler on Linux, but I failed. I get all deps compiled, but I fail
with glib. If I use glib as binary then pango fails to compile.

Are you able to replace the broken pango package in short time?

Is there an alternative runtime+devel package for recent gtk+ version?

I like to get gtkmm running on top. But it seems the gtkmm installer
fails, because it doesn't include gtk+.

Please help me to get a recent gtk+ devel environment working on win32.
I assume more people have the same problem.

regards
Andreas

[1]
http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.20/pango-1.20.0.zip
http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.20/pango-dev-1.20.0.zip
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list