Re: GTK+ 2.16.4 released

2009-07-02 Thread Gabriele Greco
On Thu, Jul 2, 2009 at 12:58 AM, Matthias Clasen mcla...@redhat.com wrote:

 GTK+ 2.16.4 is now available for download at:



About 2.16 releases:

There is some official (like Tor Win32 bundles) or unofficial OSX framework
released or we have to build from sources?

Building an OSX universal binary framework compatible with 10.4+ is not
exactly easy like configure/make :)


-- 
Bye,
 Gabry
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Fontfamily

2009-07-02 Thread Bernd Demian
Hallo,
After select a font with gtk_font_selection_dialog I must now, if the
font is monospace. 
   PangoFontDescription *desc =
  pango_font_description_from_string(font_string);
   const gchar *familie = pango_font_description_get_family(desc);
   if(!pango_font_family_is_monospace(??))

But I can't get no the PangoFontFamily, has anybody a idea to get the
family object?
Thanks Bernd

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


Re: GTK+ 2.16.4 released

2009-07-02 Thread Thomas Stover



From: Gabriele Greco gabriele.gr...@darts.it
Subject: Re: GTK+ 2.16.4 released
To: gtk-app-devel-list@gnome.org

On Thu, Jul 2, 2009 at 12:58 AM, Matthias Clasen mcla...@redhat.com wrote:

  

GTK+ 2.16.4 is now available for download at:





About 2.16 releases:

There is some official (like Tor Win32 bundles) or unofficial OSX framework
released or we have to build from sources?

Building an OSX universal binary framework compatible with 10.4+ is not
exactly easy like configure/make :)


  
I have some notes from August '08 when I built gtk for osx with the x11 
back end. Let me know if you are interested. Most of the steps should be 
about the same. It was sort of funny in the sense that I have still 
never even used osx in gui mode. A friend set me up a shell account on 
his osx box on our lan, and from there via ssh and no root access, I 
made it all the way to screen shots for a presentation. I was very 
impressed that developers had taken the time to make all those pieces 
even work. My *nix experience comes from the gnu/linux world, and so for 
me at least, osx was a very strange animal. It would likely be easier to 
build for native osx gui (carbon?) than x11, since there was all sorts 
of --please-dont-do=that type switches I had to use.



--
www.thomasstover.com

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


Re: Can I set background image for GtkTextView

2009-07-02 Thread Ardhan Madras
Hi,
I already wrote a simple demo in the past when working on my project, this may 
help you, feel free to explore the codes because this is a really simple one:

#include gtk/gtk.h

int 
main (intargc,
  char **argv)
{
  GtkWidget *window;
  GtkWidget *textv;
  GdkWindow *textv_window;
  GdkPixmap *pixmap;
  GdkColor color;

  
  gtk_init (argc, argv);
  
  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_default_size (GTK_WINDOW (window), 400, 600);
  g_signal_connect (window, destroy, G_CALLBACK (gtk_main_quit), NULL);
  
  textv = gtk_text_view_new ();
  gtk_container_add (GTK_CONTAINER (window), textv);
  
  gtk_widget_show_all (window);
  
  /* Windows are are nonexistent before the widget has been realized. */
  textv_window = gtk_text_view_get_window (GTK_TEXT_VIEW (textv), 
   GTK_TEXT_WINDOW_TEXT);
  gdk_color_parse (#68604d, color);
  pixmap = gdk_pixmap_create_from_xpm ((GdkDrawable *) textv_window, NULL, 
   color, back-gimp.xpm);
  gdk_window_set_back_pixmap (textv_window, pixmap, FALSE);
  
  gtk_main ();
  
  return 0;
}





--- amolgkulka...@gmail.com wrote:

From: Amol amolgkulka...@gmail.com
To: winsty win...@126.com
Cc: gtk-app-devel-list gtk-app-devel-list@gnome.org
Subject: Re: Can I set background image for GtkTextView
Date: Wed, 01 Jul 2009 10:48:18 +0530

Try setting background to textwindow of GtkTextView.
you can get text_window through gtk_text_view_get_window
(textview,window_type);
I don't remember exact syntax though.

Regards,
Amol
On Tue, 2009-06-30 at 15:54 +0800, winsty wrote:
 Hi, All
  
 I want to set a background image for GtkTextView in my program, but i 
 don't know how to do it. And i also can't find something useful about 
 this question, that's why I'm sending it here. 
  
 Best Regards
 winsty
  
 
 
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

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




_
Listen to KNAC, Hit the Home page and Tune In Live! --- http://www.knac.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


GtkBuilder and GtkHScale

2009-07-02 Thread Matteo Landi
hi all,
i'm trying to develope a small application with the help of glade. Is it a
normal behaviour that when i set the upper limit of a GtkHscale, i need tu use
a value bigger than the needed one by 10 units? (if i need the upper bound to
be 10, i need to set it to 20). I tought about a problem of glade, but the
generated glade file contains the value used in the gui. I imagine it should be
a problem of gtkbuilder. What do you think about this?
Thanks in advance


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


Re: GtkBuilder and GtkHScale

2009-07-02 Thread Tadej Borovšak
Hello.

 hi all,
 i'm trying to develope a small application with the help of glade. Is it a
 normal behaviour that when i set the upper limit of a GtkHscale, i need tu use
 a value bigger than the needed one by 10 units? (if i need the upper bound to
 be 10, i need to set it to 20). I tought about a problem of glade, but the
 generated glade file contains the value used in the gui. I imagine it should 
 be
 a problem of gtkbuilder. What do you think about this?

My guess would be that you forgot to set page size property of scale
to 0. Default page size is 10, and this is where the offset you
experience comes.


-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkBuilder and GtkHScale

2009-07-02 Thread Tristan Van Berkom
On Thu, Jul 2, 2009 at 1:54 PM, Tadej Borovšaktadeb...@gmail.com wrote:
 Hello.

 hi all,
 i'm trying to develope a small application with the help of glade. Is it a
 normal behaviour that when i set the upper limit of a GtkHscale, i need tu 
 use
 a value bigger than the needed one by 10 units? (if i need the upper bound to
 be 10, i need to set it to 20). I tought about a problem of glade, but the
 generated glade file contains the value used in the gui. I imagine it should 
 be
 a problem of gtkbuilder. What do you think about this?

 My guess would be that you forgot to set page size property of scale
 to 0. Default page size is 10, and this is where the offset you
 experience comes.

We also have a bug about what order we save properties for GtkAdjustment,
we need to insert code to order them with care (set lower, then
higher, then value),
otherwise we sometimes load with bogus configurations.

Cheers,
   -Tristan
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list