Re: Title on gnome-shell

2018-02-27 Thread Florian Müllner
On Tue, Feb 27, 2018 at 1:59 PM, Takao Fujiwara wrote: > How can I set the title name of GtkWindow on gnome-shell? gtk_window_set_title(), but that's probably not what you mean - there are few places where gnome-shell uses the window title, in general the application name is more prominent. For t

Re: GtkTextView - The “extend-selection” signal

2018-01-19 Thread Florian Müllner
On Wed, Jan 17, 2018 at 3:19 PM, Lucky B.C wrote: > I'm trying to get the range of the selected word by > gtk_text_iter_get_offset (start) and gtk_text_ter_get_offset (end) on > the “extend-selection” signal, Right, that doesn't work. There is no selected word when the signal handler is run, as i

Re: Window icon is not shown in gnome shell dash under wayland

2017-12-03 Thread Florian Müllner
On Sun, Dec 3, 2017 at 11:39 AM, rastersoft wrote: > Thanks. That explains the problem: the .desktop file differs from the > program because the program ends in .py :( GNOME Shell does not *really* use the binary name to match .desktop files, but the WM_CLASS (X11) or application-id (wayland) pro

Re: Making a GtkSeparator more visible

2017-12-01 Thread Florian Müllner
On Fri, Dec 1, 2017 at 12:33 PM, Felipe Borges wrote: > You could make it darker by setting some css properties for its css > node [...] Of course thanks to the joys of theming, making separators *darker* may end up making them *less* visible if the user happens to use the "wrong" theme. Some th

Re: customized alignment in gtk text view

2017-06-01 Thread Florian Müllner
Hey, this is not a question about the development of GTK+, but about using GTK+ for app development - gtk-app-devel-list is a better place for this, so moving there. On Thu, Jun 1, 2017 at 3:10 PM Karan Ahuja wrote: > > I wish to display 3 lines in gtk textview as below > > software-lumapix

Re: Application.activate not emitted when opening files.

2016-06-16 Thread Florian Müllner
On Thu, Jun 16, 2016 at 9:11 PM Stefan Salewski wrote: > So your observed behaviour seems to be intended. When application is > started with arguments, example_app_open() is called, which includes > the code of example_app_activate(). This indicates that > example_app_activate() is not executed w

Re: Custom Titlebar

2014-08-11 Thread Florian Müllner
On Sun, Aug 10, 2014 at 7:31 PM, Michael Cronenworth wrote: > On 08/09/2014 04:25 PM, Mahan Marwat wrote: >> >> How can I add a custom titlebar to my GUI application? > > > Are you asking for custom text or a complete replacement with widgets of > your own? > > [...] > > If the later, GTK does not

Fwd: "Can't link to Pango"

2014-02-13 Thread Florian Müllner
Ooops, I missed replying to the list as well ... -- Forwarded message -- From: Florian Müllner Date: Thu, Feb 13, 2014 at 2:14 PM Subject: Re: "Can't link to Pango" To: Bric On Thu, Feb 13, 2014 at 8:45 AM, Bric wrote: > Here is my config.log : > > h

Re: Obtaining pointer to the window with focus

2013-12-09 Thread Florian Müllner
On Mon, Dec 9, 2013 at 5:45 PM, David Buchan wrote: > while ((widget = g_list_next (list)) != NULL) { // line 577 g_list_next() returns the element as GList, you can get to the actual content by accessing the 'data' element, e.g. something like: GList *list, *l; list = gtk_window_get_toplevels(

Re: Fulscreen mode

2013-06-17 Thread Florian Müllner
On Mon, Jun 17, 2013 at 6:46 PM, John Coppens wrote: > I would like to make DArea full-screen, if possible even hiding the > window borders. gtk_window_fullscreen() will ask the window manager to fullscreen the window, which should work as expected on most commonly used WMs. The canonical way of

Re: Help Broadway Backend

2013-02-09 Thread Florian Müllner
On Sat, Feb 9, 2013 at 12:39 AM, Diego Felix (Bill) wrote: > I tried to make the gtk+ from git repository (branch broadway) Why? That's an old development branch that has long been merged to master; to build the broadway backend, just configure GTK+ (master or any version >= 3.2) with --enable-br

Re: can anybody help me figure out why the two hbox buttons don't show?

2011-12-13 Thread Florian Müllner
On mar, 2011-12-13 at 17:23 -0800, Gary Kline wrote: > On Wed, Dec 14, 2011 at 02:03:21AM +0100, Florian M?llner wrote: > > Did you add 'hbox' to any container ('vbox' in your code example)? > > nope. What I meant to say is: you need to add 'hbox' somewhere in the widget hierarchy. Add it to 'vbo

Re: can anybody help me figure out why the two hbox buttons don't show?

2011-12-13 Thread Florian Müllner
On mar, 2011-12-13 at 16:40 -0800, Gary Kline wrote: > hm. okay, so i removed the second gtk_container_box and got the > same results. the following "hbox" is missing from the window: > > > > button_dec = gtk_button_new_from_stock ("Decrease counter"); > gtk_box_pack_start (GTK_BOX (hb

Re: can anybody help me figure out why the two hbox buttons don't show?

2011-12-13 Thread Florian Müllner
On mar, 2011-12-13 at 15:02 -0800, Gary Kline wrote: > anybody know where i'm messing up? > int > main (void) > { > GtkWidget *window; > GtkWidget *vbox, *hbox; [...] > gtk_container_add (GTK_CONTAINER (window), vbox); [...] > gtk_container_add (GTK_CONTAINER (window), hbox); GtkW

Re: GList empty after iteration?

2011-09-12 Thread Florian Müllner
On lun, 2011-09-12 at 15:10 -0400, Craig wrote: > I am shocked to see that after I iterate through the GList, I cannot > iterate through the list again. That's an easy one :-) > while(events) > { > /* [...] */ > events = g_list_next(events); >

Re: Hidden directories (Windows)

2011-08-31 Thread Florian Müllner
On mié, 2011-08-31 at 12:30 +0100, John Emmas wrote: > 2) When I'm creating a new directory using g_mkdir_with_parents() I've > tended to specify 0775 for the mode flags - simply because that's what > I've seen in every example. But presumably there's a range of flags to > choose from. Is there

Re: Append to list store doesn't get all column attributes

2011-07-27 Thread Florian Müllner
Hey, 2011/7/28 James > In a dialog with a scrolled window displaying a list, with one column in > the view, where the cells are editable; > > gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (view), >-1, >"Name", >

Re: cannot launch project with glad file

2011-01-14 Thread Florian Müllner
On Fri, 2011-01-14 at 04:36 -0500, craigbakalian wrote: > xml = glade_xml_new ("mLilyEditor.glade", NULL, NULL); "myLilyEditor.glade" does not mean "in the same directory as the executable" but "in the current working directory". Usually you define a constant from your Makefile.am (e.g. PACKAGE

Re: Errors creating GdkPixbuf

2010-09-05 Thread Florian Müllner
El dom, 05-09-2010 a las 15:10 +0100, Andrew Wood escribió: > When it runs it spews out: > > (process:2153): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.0/gobject/gtype.c:2706: You forgot to call > g_type_init() Make sure to call g_type_init() before using any GObject library. __

Re: Accessor function for application.width ?

2010-07-12 Thread Florian Müllner
El mar, 13-07-2010 a las 06:56 +0100, N James Bridge escribió: > It's useful to blank out a drawing area by drawing a filled rectangle > with the same size as the window. The examples I have seen get the > dimensions from widget->allocation.width but Devhelp says that the > GtkAllocation structure

Re: word wrap in liststore column

2010-06-27 Thread Florian Müllner
Hi, El dom, 27-06-2010 a las 18:19 +1000, Mick escribió: > Thanks, a clear answer to question 1 and 1.5 answers to question 2, I > didn't notice the gtk_tree... way ontil after I guessed how to gobject > set it, out of interest, which is better? Whichever looks better :-) Seriously, calling g_ob

Re: g_io_scheduler_job_send_to_mainloop How to?

2010-06-26 Thread Florian Müllner
Hi, the code you posted looks a little incomplete, but nevertheless I think you got it a little backwards. From what I see, it should look more or less like this (note: I didn't actually try to compile this): gboolean build_thumbnails (gpointer user_data) { printf ("BUILD!"); } gboolean job_fu

Re: word wrap in liststore column

2010-06-26 Thread Florian Müllner
El sáb, 26-06-2010 a las 20:35 -0700, Steve Harrington escribió: > This is a frustration I sometimes encounter. How do you know to do > this? I see nothing in the documentation for GtkCellRenderer or any of > it's antecedents that shows "wrap-width" or "wrap-mode" as a property. That's because

Re: word wrap in liststore column

2010-06-26 Thread Florian Müllner
Hi, El dom, 27-06-2010 a las 12:25 +1000, Mick escribió: > I know that, I have searched but not found anything that says "this is > how you set the properties of ..." ... an GObject: http://library.gnome.org/devel/gobject/stable/gobject-The-Base-Object-Type.html#g-object-set > what I'm trying t

Re: How to destroy GFile objects?

2010-06-13 Thread Florian Müllner
El dom, 13-06-2010 a las 20:27 +0200, Tomasz Jankowski escribió: > What should I do with GFile objects (GFile *) ? What are they, regular > GObject objects which I can destroy using g_object_unref() or maybe they're > managed internally by GIO? GFile is an interface which is implemented by various

Re: How to get a widget from its parent of parent(...) by name?

2010-06-09 Thread Florian Müllner
El mié, 09-06-2010 a las 22:02 +1000, Tao Wang escribió: > How can I do this if I migrate to GtkBuilder? There is no similar function > of 'glade_xml_get_widget()'. gtk_builder_get_object() is what you want :) ___ gtk-app-devel-list mailing list gtk-app-

Re: What version do I have

2010-03-15 Thread Florian Müllner
El mar, 23-02-2010 a las 21:29 -0800, Robert Michael escribió: > How do I tell what version I have installed? You can either get that information from your distro's package manager (on Debian: apt-cache showpkg libgtk2.0), or you can use pkg-config like this (distro-agnostic): pkg-config --modver

Re: safely emit signal to main loop (main thread) from worker thread

2010-01-28 Thread Florian Müllner
El jue, 28-01-2010 a las 17:09 -0500, ferar achkar escribió: > How can I safely emit a custom signal from a working thread to gtk main > loop (main thread) to execute a custom call back function connected to > that custom signal. Not sure if I understand your intention here. In GObject/GTK+, signa

Re: gtk_container_remove() and pack later again

2010-01-22 Thread Florian Müllner
On Fri, 2010-01-22 at 15:13 +0100, fka...@googlemail.com wrote: > So, could anyone please confirm if this is correctly coded: Well, first of all I don't think g_object_force_floating() is intended for general application use. Beside that, the code looks overly complicated. Why not do: (0) Object

Re: gtk_builder_add_from_file error handling

2010-01-13 Thread Florian Müllner
On Wed, 2010-01-13 at 11:52 +0100, Gabriele Greco wrote: > GError *err = NULL; > if (!gtk_builder_add_from_file(builder_, "myfile.xml", &err)) { >if (err) { > cerr << "builder load fail: " << err->message << '\n'; > g_free(err); // commenting this solves the crash but other gtk apis

Re: how to catch window manager close

2010-01-08 Thread Florian Müllner
El vie, 08-01-2010 a las 10:43 -0500, Chris Bare escribió: > I'm creating an app with glade, and I've got a GtkAboutDialog. my About menu > item's activate singal calls gtk_widget_show which works as expected. Using gtk_dialog_run() instead of gtk_widget_show() will do what you want without connec

Re: callback function difference

2009-12-10 Thread Florian Müllner
El jue, 10-12-2009 a las 22:05 +0800, Zhangwei escribió: > hello > i'm new in gtk > i'm puzzled about the callback functions: g_callback() & gtk_signal_func() > they looked same > is there anyone can tell me the difference ? There is none. The object/signal system of Gtk was split out into GObjec

Re: Re: Application termination at some point

2009-11-17 Thread Florian Müllner
On mar, 2009-11-17 at 10:47 +, ds.sun...@gmail.com wrote: > Thank you very much for your replies guys... > > I run my test application with -g option and i am getting the following > error message. I not able to fix the issue with the available information. > Am i doing things correctly or

Re: g_object_get_data Programmer error

2009-11-03 Thread Florian Müllner
El mar, 03-11-2009 a las 07:39 -0800, Steve Harrington escribió: > I am trying to use g_object_get_data() to retrieve the GtkWidget * of an > object. Seems simple enough but The attached code doesn't work. I must > have missed something simple but darned if I can see it. Indeed - g_object_get_

Re: toolbutton label not visible in gtk 2.18

2009-10-30 Thread Florian Müllner
On Fri, 2009-10-30 at 09:57 -0700, John Stebbins wrote: > On 10/30/2009 09:24 AM, John Stebbins wrote: > > I just installed fedora 12 beta on one machine and ubuntu 9.10 on > > another. Both have gtk 2.18.3. When I run my application on either > > system, my toolbutton labels are not visible.