Re: How to get a directory from the user

2018-06-04 Thread Phil Wolff
void gtk_file_chooser_set_action (GtkFileChooser *chooser, GtkFileChooserAction action); set action to FILE_CHOOSER_ACTION_SELECT_FOLDER On 06/04/2018 05:06, Richard Shann wrote: Hi, I have seen GtkFileChooser for getting a file from the user, but how to get a directory (folder)? Richard

Re: The "effect" of carriage return in GtkTextView

2018-03-13 Thread Phil Wolff
In Gtk::TextBuffer, look at get_iter_at_line_offset() or get_iter_at_line_index() followed by place_cursor(). On 03/13/2018 09:02 AM, arkkimede wrote: HI! I written an application GTK3 on Ubuntu 16.04 that essentially, by mean a GUI generates an input file used to feed an executable. This exe

GtkTreeViewColumn width

2018-02-18 Thread Phil Wolff
Why is GtkTreeViewColumn's "width" property read-only? If you can make the column resizeable so the user can change the width, why isn't there a means to do so under program control? Or is there a way and I just haven't found it? ___ gtk-app-devel-li

Re: How to change particular tab child of a GtkNotebook

2018-01-30 Thread Phil Wolff
The point of using the container as a placeholder is to eliminate the deletion of the entire tab. You create each tab with a container as its child, and then add() your child to the tab's container rather than directly to the tab. When you later remove() your child and add() it to a different

Re: How to change particular tab child of a GtkNotebook

2018-01-30 Thread Phil Wolff
Why not make the tab's child a GtkContainer, then change the contents of the container with remove()/add()? On 01/30/2018 10:17 AM, psp...@mail.bg wrote: I am making a text editor in GTK, whereas each new file is loaded into a new tab. I don't want to create and initialize the same content

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

2017-12-04 Thread Phil Wolff
In the wiki link, "this blog post" points to http://cgwalters.livejournal.com/25818.html, which can't be resolved. Have you an accessible alternative? On 12/02/2017 03:44 PM, Emmanuele Bassi wrote: For more information: -https://standards.freedesktop.org/desktop-entry-spec/latest/ -https

Re: Gtk+ progress bar color

2017-03-08 Thread Phil Wolff
On 03/08/2017 07:23 AM, Emmanuele Bassi wrote: Sorry, we haven't yet found the way to write a `gtk_do_what_i_mean()` function. You aim too low; try for gtk_do_what_i_should_have_meant (). ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.or

Re: GTK3 Glade and rendering in Windows/Linux]

2017-02-19 Thread Phil Wolff
In the example you cite, the css file should read window { background-color:rgba(233,23,34,1); } On 02/19/2017 04:33 AM, Happy wrote: I dont mind the windows theme to look different than the Ubuntu one, if it looks close or equal to native Windows, that would be great. The concern is, under wi

Re: gtk_dialog_get_action_area() deprecation

2016-12-31 Thread Phil Wolff
Perhaps you could provide a link to that documentation? On 12/31/2016 12:11 PM, Emmanuele Bassi wrote: Especially now that the CSS system is documented and extremely powerful. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://m

Re: Help with modal dialog

2016-04-21 Thread Phil Wolff
Sounds like your dialog goes out of scope when the "return 0" statement executes. Is the pointer to the dialog stored on the stack as a local variable, or as a class variable that will be preserved until the class is destroyed? On 2016-04-20 06:50 PM, Matthew A. Postiff wrote: On 4/20/2016 2:

Re: have a GtkWindow default to always being on the visible workspace

2015-10-17 Thread Phil Wolff
gtk_window_stick() ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to make a GtkButton respond to a key press

2015-03-06 Thread Phil Wolff
When using Glade to design a UI, I've noticed that the Button dialog has an "Activatable/Actionable" section which includes an on/off "Use Action Appearance" selection. This suggests that you might look into GtkActionable and kin... On 2015/03/06 07:55, Jim Charlton wrote: > On 15-03-06 06:52 AM

Re: Getting a menubar to work under Ubuntu 14.10?

2015-01-29 Thread Phil Wolff
you use a desktop other than Unity. On 2015/01/29 11:53, Phil Wolff wrote: Quoting from the link you mentioned: "As part of the initial setup of our application, we also create an icon and a desktop file." I had a similar problem using gtkmm on 14.10, and I discovered that the part ab

Re: Getting a menubar to work under Ubuntu 14.10?

2015-01-29 Thread Phil Wolff
Quoting from the link you mentioned: "As part of the initial setup of our application, we also create an icon and a desktop file." I had a similar problem using gtkmm on 14.10, and I discovered that the part about the desktop file is not just a suggestion, it's a requirement. On 2015/01/29 07

Re: gtk_window_set_geometry_hints woes

2014-10-24 Thread Phil Wolff
Look at using GtkAspectFrame as the first HBox child, and put your game board in it. On 10/24/2014 02:52 PM, Norbert Zeh wrote: Hi folks, I am trying to put together a simple game board window, which packs the game board on the left and a button panel on the right. The top-level container wit

Re: any ideas for a fix?

2014-08-21 Thread Phil Wolff
You're trying to use each label in three places, and you can't do that. Try this: int main (int argc, char *argv[]) { GtkWidget *window, *vbox; // Labels go in here, vertically orientated. //GtkWidget *label1, *label2, *label3; GtkWidget *label1[32], *label2[32], *label3[32]; int tt