Re: g_spawn_async_with_pipes

2011-02-13 Thread Dad
On Sat, 2011-02-12 at 22:04 +0100, Tadej Borovšak wrote:
 Hi.
 
  Well yes, it is simpler.  And, you are correct, it is awkward.  I just
  had this vision of two g_spawn_async_with_pipes() hooked together.
  Running echo output echo_out directly into lilypond's input echo_out
  as if they may share echo_out.  I will need to test/hack this.  I
  hate hacking.  I wish we had more examples here in linux land!
 
  I just thought it would be more efficient and quicker to send data
  directly to lilypond instead of a file location.
 
 Since you're already using g_spawn_async_with_pipes(), why don't you
 simply execute /usr/bin/lilypond --output=scale.png - and then feed
 the lilyponds stdin through obtained file descriptor that g_spawn...()
 gives you?
 
 Cheers,
 Tadej


Hi Tadej,

Lilypond was very fussy with the stdin of g_spawn_async_with_pipes().
It didn't like it.

In the end I just did the temp.ly file.  It works well.  It would be an
interesting exercise if one of us on this list actually figured out how
to pipe the output of one application to the stdin of another
application using g_spawn_async_with_pipes().  Lilypond was very fussy
with this.  I would have to write some Scheme program to do this.  I am
50 years old.  I don't want to learn another syntax!

Thanks for coaching me through the pipes!

Craig Bakalian


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

Re: gtk3: behavior of gtk_widget_set_size_request

2011-02-13 Thread Allin Cottrell
On Sun, 13 Feb 2011, Tristan Van Berkom wrote:

 On Sun, Feb 13, 2011 at 5:49 AM, Allin Cottrell cottr...@wfu.edu wrote:
  I'm using gtk_widget_set_size_request on a GtkTreeView that gets
  embedded in a scrolled window which in turn is embedded in a
  larger window -- setting the width to 120 and leaving the height
  unset.
 
  This works as expected in gtk2, but in gtk3 the treeview's window
  is much narrower (doesn't look like 120), and its width doesn't
  respond even if I double the request. Am I missing some change in
  the widget-sizing code?

 Yes that has changed, setting the size request now only effects
 the widgets requested size.

 We added gtk_scrolled_window_set_min_content_width() specifically
 for your purposes.

OK, got it, thanks.

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


gtk3 migrating document and drawing

2011-02-13 Thread Allin Cottrell
It seems that the section of the gtk-migrating-2-to-3 doc as
distributed with gtk 3.0.0 is not up to date with the state of the
drawing code in the release. For example, it still talks about
using pixmaps in the replacement code sections. This is an area
where it would be very helpful to have up-to-date and precise
documentation.

Allin Cottrell


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


gtk3: FileChooser schema not found

2011-02-13 Thread Allin Cottrell
I have glib 2.28.0 installed, along with gtk 2.24.0 and gtk 3.0.0.
Calls to the FileChooser in my app work as expected in 2.24, but
in 3.0.0 they produce:

GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser'
is not installed

and the program aborts. The file
org.gtk.Settings.FileChooser.gschema.xml is installed in
$prefix/share/glib-2.0/schemas (2133 bytes).

-- 
Allin Cottrell
Department of Economics
Wake Forest University

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


Using GSocket in a GTK application

2011-02-13 Thread Jacques Pelletier
Hi all,

I'm using GSocket in a GTK application in non-blocking mode.

Once the connection is done, I'm creating a source for the main event loop:
my_source = g_socket_create_source(my_socket, my_events, NULL);

How do we specify a callback? Should I use g_source_set_callback ()?
The callback would handle the input side from the host to my application.

Thanks,

JP

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