Is GTK available on windows 7 ??

2010-05-24 Thread Chandra Shekhar Sengupta
Hi all,

I want to create a cross platform application for Windows 7,Windows XP 
Linux. Is GTK available on windows 7 ??

Regards,
Chandra Shekhar Sengupta


On Sat, May 22, 2010 at 5:30 PM, gtk-app-devel-list-requ...@gnome.orgwrote:

 Send gtk-app-devel-list mailing list submissions to
gtk-app-devel-list@gnome.org

 To subscribe or unsubscribe via the World Wide Web, visit
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
 or, via email, send a message with subject or body 'help' to
gtk-app-devel-list-requ...@gnome.org

 You can reach the person managing the list at
gtk-app-devel-list-ow...@gnome.org

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of gtk-app-devel-list digest...


 Today's Topics:

   1. play sound when a key is pressed (Andrew Nelson)


 --

 Message: 1
 Date: Fri, 21 May 2010 17:32:15 -0500
 From: Andrew Nelson gtk-app-devel-l...@andrewnelson.name
 To: gtk-app-devel-list@gnome.org
 Subject: play sound when a key is pressed
 Message-ID:
aanlktilt3v--tbq0lw3lftczpy-o8h7mbarv77wy5...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1

 All,

 I'm trying to create a very simple app (actually written in vala) that
 plays a sound (preferably from a wav file) when a key is pressed.  Key
 press events are likely to arrive quite close together.   Currently
 I'm using gstreamer to do this but it seems to take quite a while
 after playing the first wav file that I can play the next.

 Is using gstreamer the correct approach to attack this requirement or
 should look into another library?

 Thanks

 //andy


 Here is the current code I use to play audio.

 class Audio {

private Element playbin;
private bool playing;
private string audio_src;

public Audio() {
string sounds =
 GLib.Path.build_filename(Environment.get_current_dir(), sounds,
 null);
audio_src = GLib.Path.build_filename(sounds, alert.wav, null);
playbin = Gst.ElementFactory.make(playbin, player);
playbin.set_property(uri, file:// + audio_src);

var bus = playbin.get_bus();
bus.add_signal_watch();
bus.message.connect(player_message);
}

private void player_message(Message message) {
if (message.type == Gst.MessageType.EOS ) {
playbin.set_state(Gst.State.NULL);
playing=false;
stdout.printf(read for next sound\n);
}
}

public void make_sound() {
if(!playing) {
playing = true;
playbin.set_state(Gst.State.PLAYING);
}
}
 }


 --

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

 End of gtk-app-devel-list Digest, Vol 73, Issue 19
 **

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


GTK development setup on windows?

2010-05-24 Thread Chandra Shekhar Sengupta
Hi All,

I was trying to develop on windows using GTK. But i could not find any
straight forword guide or step by step tutorial to setup GTK development
environment on www.Gtk.org.. i found some thing on GTKForums (
http://www.gtkforums.com/viewtopic.php?p=4848highlight=#4848). But its very
lengthy and has so many dependencies.

Why not we create a plugin or add-on any in any cross platform IDE
like(Eclipse,Code::Blocks) to make GTK development setup easy on windows?

Earlier we used to use GLADE as it used to create MSVC project  source
files.. But GLADE-3 onwards i could not find any option to create MSVC
projects on GLADE?

Any idea how to setup GTK development environment in Windows quickly?

Regards,
Chandra Shekhar Sengupta
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re:Rearrange childes of VBOX

2008-04-27 Thread Chandra Shekhar Sengupta
For changing the position of a child in the vbox you can use the api
gtk_box_reorder_child ().Refer the following link
http://library.gnome.org/devel/gtk/stable/GtkBox.html#gtk-box-reorder-child.

Regards,
Chandra Shekhar Sengupta

Message: 1
Date: Fri, 25 Apr 2008 19:46:30 +0400
From: AlannY [EMAIL PROTECTED]
Subject: Rearrange childes of VBOX
To: gtk-app-devel-list@gnome.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=KOI8-R; format=flowed

Hi there ;-)

I have a window with included vbox, which includes some count of
widgets. When I press button, I want to change position of this widgets
in this vbox ;-) How to do it?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re:Re: setting the font of a dialog widget

2008-04-27 Thread Chandra Shekhar Sengupta
hi ,
you can change the font size of a general widget from rc file. Refer the
following code.
///
style dialogstyle = default
{
  font_name = Sans 20
}

widget_class *Dialog* style dialogstyle


Include the above code to rc file . It works.

Regards,
Chandra Shekhar Sengupta

Date: Sat, 26 Apr 2008 10:10:45 -0700
From: Garth's KidStuff [EMAIL PROTECTED]
Subject: Re: setting the font of a dialog widget
To: gtk-app-devel-list@gnome.org, [EMAIL PROTECTED]
Message-ID:
   [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1

Hey there,

I just now got back to this problem.  Maybe I'm misunderstanding something,
but it seems that the solution you recommend is solely a solution for
Gtk::Labels -- not for general widgets.  I can change the font size for
labels -- but not for other widgets (e.g. CheckButton, RadioButton.).
That's my issue.

To recap:  How do I change the font size of a general widget?

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


how to make a widget background transparent?

2008-04-24 Thread Chandra Shekhar Sengupta
Hi,
I am writing a custom widget where i need the background of the widget to be
transparent. i have taken drawing area as base and drawing a transparent png
image from file there using cairo. i am setting gtk_widget_set_app_paintable
for drawing area  as TRUE and drawing the background using cairo. But the
background is coming black. Could you help me how to make widget backgound
transparent.

Thanks  Regards,
Chandra Shekhar Sengupta
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list