GtkHScale: Jump-to-position by left-click instead of middle-click?

2011-11-19 Thread Phong Cao
Hello everybody, I am new to GTK. I am trying to develop a small music player using GTK & GStreamer. I use GtkHScale for the progress bar, which is responsible for updating the track progress & allow user to move to different time position in the track. Everything works fine until now, except tha

Re: GtkHScale: Jump-to-position by left-click instead of middle-click?

2011-11-19 Thread David Nečas
Was it really necessary to cross-post this question to *four* mailing lists? On Sat, Nov 19, 2011 at 07:55:59AM -0500, Phong Cao wrote: > I use GtkHScale for the progress bar, which is responsible for > updating the track progress & allow user to move to different time position > in the track. >

Re: GtkHScale: Jump-to-position by left-click instead of middle-click?

2011-11-19 Thread Phong Cao
Thank you David for your response. I am just a Gtk newbie so this question is a tough one for me. Sorry for cross-posting & I won't do it again next time. Thank you and have a good day. On Saturday, November 19, 2011, David Nečas wrote: > > Was it really necessary to cross-post this question to *

Need help with window-state-event

2011-11-19 Thread Dipesh Sudershan
How do i check a window is maximized or not? static gboolean window_state_event_handler(GtkWidget *window, GdkEventWindowState *event) { } GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(window, "window-state-event", G_CALLBACK(window_state_event_handler), NULL); I'm