Trouble with signal ID lookup for "popped-up"

2018-01-09 Thread Eric Williams
Hello, I am trying to lookup the signal ID for "popped-up" (GtkMenu). However the ID returned is always 0. Here is the code I am using: g_signal_lookup ("popped-up", GTK_TYPE_WIDGET) I tried using GTK_TYPE_MENU instead, but then I get the error: unable to lookup signal "popped-up" of

Re: GtkShortcutsWindow how to

2018-01-09 Thread Ondrej Tuma
Thanks a lot! It works! Searching is simple, it is about adding section to window. All what is in section when you add section to window is searchable. So simple fix is append section to window at and of your on-startup function :-) Ondra V Tue, 09 Jan 2018 15:43:02 +0200 '-'

Re: GtkShortcutsWindow how to

2018-01-09 Thread '-'
Hello, See object hierarchy on the documentation page. GtkShortcutsWindow inherits from GtkContainer, suggesting you treat it like a regular box. UI data files are good for examples, because you immediately see the widget hierarchy, which can be hard to follow in flat code. Here is how you can

GtkShortcutsWindow how to

2018-01-09 Thread Ondrej Tuma
Hi there, i try to create ShortcutsWindow for my application but, in documentation is: The recommended way to construct a GtkShortcutsWindow is with GtkBuilder, by populating a GtkShortcutsWindow with one or more GtkShortcutsSection objects, which contain GtkShortcutsGroups that in turn contain

Multiple GtkGLArea Widget on Windows 32/64

2018-01-05 Thread Sébastien Le Roux
Happy new year ! Dear all, I developed a GTK+3 based program that uses (a lot) the GtkGLArea widget (https://developer.gnome.org/gtk3/stable/GtkGLArea.html). Everything works perfectly fine ... on Linux that is ... on windows this is not exactly the case ... The program offers to

Re: g_log_set_fatal_mask() not working for me.

2017-12-18 Thread Eric Cashon via gtk-app-devel-list
I found this bug for the scrollbar warning. https://bugzilla.gnome.org/show_bug.cgi?id=769566 I don't know about the critical warning that you have or have a solution figured out. I am not much help there. Eric ___ gtk-app-devel-list mailing

Re: g_log_set_fatal_mask() not working for me.

2017-12-18 Thread Richard Shann
On Sun, 2017-12-17 at 17:54 -0500, cecas...@aol.com wrote: > > Hi Richard, > > This sounds similar to the problem Dino Aljević had in "Scrolled > TreeView and size allocation warnings" in this list in September? > > I can get the warning > > "(treeview4:3830): Gtk-WARNING **: Allocating size

Re: g_log_set_fatal_mask() not working for me.

2017-12-17 Thread Eric Cashon via gtk-app-devel-list
Hi Richard, This sounds similar to the problem Dino Aljević had in "Scrolled TreeView and size allocation warnings" in this list in September? I can get the warning "(treeview4:3830): Gtk-WARNING **: Allocating size to GtkWindow 0x843e188 without calling

g_log_set_fatal_mask() not working for me.

2017-12-17 Thread Richard Shann
I am getting a warning message:  Gtk-WARNING **: Allocating size to GtkScrollbar 0x5647efd0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? however when I call call g_log_set_fatal_mask ("Gtk", 1<<4) at the start of main the warning is

Re: GTK3 - GtkExpander problem, bug ?

2017-12-15 Thread Eric Cashon via gtk-app-devel-list
Thanks Matthias. I probably should have checked bugzilla first. Just rebuilt GTK to version 3.22.26 and it works fine. There is no click through after closing the expander. Eric ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: GTK3 - GtkExpander problem, bug ?

2017-12-15 Thread Matthias Clasen
On Thu, Dec 14, 2017 at 7:58 PM, Sébastien Le Roux < sebastien.ler...@ipcms.unistra.fr> wrote: > Dear Eric, > thanks for your answer, and yes it is pretty much the same, the > differences in my case, > are: I use toggle buttons and I do not use a grid. > > Thanks you for providing me with this

Re: GTK3 - GtkExpander problem, bug ?

2017-12-15 Thread Sébastien Le Roux
Dear Eric, thanks for your answer, and yes it is pretty much the same, the differences in my case, are: I use toggle buttons and I do not use  a grid. Thanks you for providing me with this nice working example, I played with it to illustrate the bug because it happens with your code too,

Re: GTK3 - GtkExpander problem, bug ?

2017-12-14 Thread Eric Cashon via gtk-app-devel-list
Hi Sébastien, An out of sync reply. I must have accidently deleted your last response after I read it. Also I didn't notice there were two mailing lists referenced. Probably just need the app dev list. It looks like it is a bug that has been recently introduced. If I test, test.c with

Re: GTK3 - GtkExpander problem, bug ?

2017-12-14 Thread Eric Cashon via gtk-app-devel-list
Hi Sébastien, If I try some test code... it should work. The code uses a grid instead of a fixed container. Is this similar to what you have tried? Eric /* gcc -Wall buttons1.c -o buttons1 `pkg-config --cflags --libs gtk+-3.0` Tested with GTK3.18 on Ubuntu16.04 */ #include static

Re: GTK3 - GtkExpander problem, bug ?

2017-12-14 Thread Tilo Villwock
Hello Sébastien, attaching images isn't allowed on here. Have you created a minimal working example that reproduces the bug? Otherwise it'll be hard to help you. Cheers, Tilo ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

GTK3 - GtkExpander problem, bug ?

2017-12-14 Thread Sébastien Le Roux
Dear all thanks in advance for reading this, I wrote a piece of code in GTK3, and I might have found an issue with the GtkExpander widget, shorter than a long text explanation, I attach to this email a screen capture from a window from my program. This window contains a bunch of GtkExpander,

Re: How to select multiple files

2017-12-06 Thread makepost
Hello. Please send a more complete example where you use the file chooser. If you tried running on other platforms, does it work there as expected? On December 6, 2017 11:59:31 AM EET, effemmeffe wrote: >Hello, I'm using GTK3 with C on Windows. >I can compile my code with

How to select multiple files

2017-12-06 Thread effemmeffe
Hello, I'm using GTK3 with C on Windows. I can compile my code with with code::blocks. I'm trying to use a filechooser to select a bunch of files and found gtk_file_chooser_set_select_multiple, but it seems it doesn't work. The file chooser window shows up and I can navigate my filesystem to the

Re: gtk_widget_size_allocate(): attempt to allocate widget with width -19 and height 1

2017-12-04 Thread Franco Broi
Thanks Eric. I tried swapping the margin for border width and now I get a warning for every item I add to the grid. Plus I don't want a wide border all around the widget, I just want to add some space on the left. I see that margin-left has been replaced by margin-start but I don't see that in

Re: gtk_widget_size_allocate(): attempt to allocate widget with width -19 and height 1

2017-12-04 Thread Eric Cashon via gtk-app-devel-list
Hi Franco, I see "margin-left" is deprecated since version 3.12. This might work. If you set the container margin of the grid and then individually place your widgets in the locations that you want them,,, hopefully no warnings. I don't get any warnings on GTK3.18. Will something like this

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/

Re: Static library with Gtk 3

2017-12-04 Thread Lucas Levrel via gtk-app-devel-list
Le 30 novembre 2017, à 12:44, Emmanuele Bassi a écrit : To be fair, there's literally no reason whatsoever to do a static build; this is not 1983. You're going to waste more resources (loading time, storage space) doing a static build of everything, these days. I think there are some good

Re: Static library with Gtk 3

2017-12-04 Thread Lucas Levrel via gtk-app-devel-list
Le 29 novembre 2017, à 18:57, Мариано Гаудикс a écrit : Hi . I need a example for compiling a static library with Gtk3 libraries together . MXE might help you with this: http://mxe.cc/ -- Lucas Levrel ___ gtk-app-devel-list mailing list

gtk_widget_size_allocate(): attempt to allocate widget with width -19 and height 1

2017-12-03 Thread Franco Broi
Hi I have an application built using Glade which has a grid inside an expander, when I expand the expander I get a Gtk-WARNING even though everything works as expected. Through trial and error I traced the problem to the left margin set on the grid widget, if it's zero I don't get a warning. 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

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

2017-12-03 Thread rastersoft
Hi: Thanks. That explains the problem: the .desktop file differs from the program because the program ends in .py :( El 03/12/17 a las 00:44, Emmanuele Bassi escribió: Hi; On 2 December 2017 at 22:34, rastersoft wrote: I created several applications that make use

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

2017-12-02 Thread Emmanuele Bassi
Hi; On 2 December 2017 at 22:34, rastersoft wrote: > I created several applications that make use of Gtk.window, and set a window > icon. But recently I discovered that, under wayland, the icon is not shown > in the dash, but under X it is shown fine. It fails both in

Window icon is not shown in gnome shell dash under wayland

2017-12-02 Thread rastersoft
Hello: I created several applications that make use of Gtk.window, and set a window icon. But recently I discovered that, under wayland, the icon is not shown in the dash, but under X it is shown fine. It fails both in python3 and Vala applications. In both cases I used Glade to generate

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

Re: Making a GtkSeparator more visible

2017-12-01 Thread Felipe Borges
Hi, On Wed, Nov 29, 2017 at 11:30 PM, wrote: > How can I make a GtkSeparator more visible. I guess that means making it > darker and / or thicker You could make it thicker by increasing its height_request property to a proper value. You could make it darker by setting

Making a GtkSeparator more visible

2017-12-01 Thread dougf
How can I make a GtkSeparator more visible.  I guess that means making it darker and / or thicker Thanks Doug ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Static library with Gtk 3

2017-11-30 Thread Emmanuele Bassi
While we don't actively disable static builds, we're also not really using them, or testing them. This typically means that doing static builds of GTK (and its dependencies) is discouraged, or at least that you're basically on your own. To be fair, there's literally no reason whatsoever to do a

Re: Static library with Gtk 3

2017-11-30 Thread rastersoft
Hi: El 30/11/17 a las 13:11, bas...@starynkevitch.net escribió: Beware that releasing such a static library in binary form (without its source code) is probably a violation of the LGPL license. Read carefully the LGPL2.1 license of GTK.

Re: Static library with Gtk 3

2017-11-30 Thread basile
On 2017-11-30 13:00, gtk-app-devel-list-requ...@gnome.org wrote: Today's Topics: 1. Static library with Gtk 3 (??? ???) -- Message: 1 Date: Wed, 29 Nov 2017 18:57:31 -0300 From: ??? ???

Static library with Gtk 3

2017-11-29 Thread Мариано Гаудикс
Hi . I need a example for compiling a static library with Gtk3 libraries together . Cordial greetings ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How would I change the text style in a gedit plugin?

2017-11-26 Thread Eric Cashon via gtk-app-devel-list
This is similar but just using GTK. You get the iters for the start and end of the range that you want to tag and apply the tag to it. Eric import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk class TextBox(Gtk.TextView): def __init__(self):

How would I change the text style in a gedit plugin?

2017-11-26 Thread ALLOW THERE
I'm a GTK noob, so sorry if I'm asking too much. I'm trying to change the style of text in gedit through a plugin (sort of like underlining text as in a spellcheck, or change the color of text). I have a document like this: doc = self.window.get_active_document() Then I get bounds start,

Re: Set CSS properties programmatically

2017-11-25 Thread Felipe Borges
Hello, On Sat, Nov 25, 2017 at 5:03 PM, - wrote: > Hello, > > Can you please share a link to your current approach? Doesn't sound > efficient but makes sense. I'd like to run the code and see the animation in > action. Yes. It is being used in GNOME Usage performance panel

Re: Set CSS properties programmatically

2017-11-25 Thread '-'
Hello, Can you please share a link to your current approach? Doesn't sound efficient but makes sense. I'd like to run the code and see the animation in action. On 2017-11-25 14:41, Felipe Borges wrote: Hi, I have been looking for a clean way of updating my widget's css properties

Re: Set CSS properties programmatically

2017-11-25 Thread Emmanuele Bassi
Hi Felipe; You probably wanted to send this email to gtk-devel-list, not gtk-app-devel-list. On Sat, 25 Nov 2017 at 12:41, Felipe Borges wrote: > Hi, > > I have been looking for a clean way of updating my widget's css > properties programmatically at runtime. > >

Set CSS properties programmatically

2017-11-25 Thread Felipe Borges
Hi, I have been looking for a clean way of updating my widget's css properties programmatically at runtime. Basically I have a css animation which gets its properties from variables in my C code. The current (working) approach I came up with is to benefit from the cascade and generate a whole

Re: Webkit2 export html to PDF

2017-11-21 Thread Ondrej Tuma
Great! Thank's a lot, but it have one problem, which i must to resolve, Name of printer is localized, so i must get this printer name from system. But this could be the way :-) Ondra V Wed, 22 Nov 2017 01:36:05 +0200 '-' napsáno: > Hello, > > You can configure

Webkit2 export html to PDF

2017-11-21 Thread Ondrej Tuma
Hi there, do you someone here know, ho to get pdf from html via WebKit2? I generate html page from some another sources, and i want to export pdf from this html. I can generate pdf by another library, but i use WebKit2, GTK+, resp. cairo, so these libraries are ready to that. I was study

Problem solved, thanks Nicola!

2017-11-07 Thread Nils Söderman
___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Jump from PyGTK to C GTK

2017-11-07 Thread Thomas Rønshof
Hi Nils, Try something like this...     builder = gtk_builder_new ();     gtk_builder_add_from_file (builder, "test2.glade", NULL);     window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));     gtk_builder_connect_signals (builder, NULL);

Re: Jump from PyGTK to C GTK

2017-11-07 Thread Nicola Fontana
Il Tue, 7 Nov 2017 13:52:01 +0100 Nils Söderman scrisse: > Hello, i have been using glade to build a GUI, doing an app to fill the > entry-boxes with data. OK so far. But when i wanted to color the boxes > with help of PyGTK according to their content and did not succeed

Jump from PyGTK to C GTK

2017-11-07 Thread Nils Söderman
Hello, i have been using glade to build a GUI, doing an app to fill the entry-boxes with data. OK so far. But when i wanted to color the boxes with help of PyGTK according to their content and did not succeed with that i decided to start using c instead, where i have 20 years more experience.

Re: No protocol specified error

2017-11-04 Thread Emmanuele Bassi
On 4 November 2017 at 06:08, Lokesh Chakka wrote: > Dear Felipe, > > I have refereed the link. As the application I am writing needs root > privileges, I must use sudo ./a.out. No other option. Of *course* there are other options for you: this is software

Re: No protocol specified error

2017-11-04 Thread Lokesh Chakka
okay... after some more search I found here xhost si:localuser:root is doing the job. But is there a way to achieve this programatically in C language ? Thanks & Regards -- Lokesh Chakka, Mobile: 9731023458 On Sat, Nov 4, 2017 at 2:53 PM,

Re: No protocol specified error

2017-11-04 Thread Lokesh Chakka
Hello, To add, I found gksudo might be helpful. I found issue mentioned here: https://bugs.launchpad.net/ubuntu/+source/ubuntu-themes/+bug/1723422 and work around https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1724078/comments/4 after that, I found the following issue:

Re: No protocol specified error

2017-11-04 Thread Lokesh Chakka
Dear Felipe, I have refereed the link. As the application I am writing needs root privileges, I must use sudo ./a.out. No other option. Dear Bruggemann, I have gone through zenmap as suggested by you. But it is not going to work as zenmap itself is failing to launch.

Re: GtkFileChooser problem

2017-10-25 Thread rbd
Hi, i recall having struggled with a file chooser some years ago, but after some iterations got something that worked for me for simple file operations. It was however impossible at that time to tell the file chooser to open a file OR a dir so i ended reinventing the wheel and wrote my own file

Re: Help with Gcolor3

2017-10-25 Thread Listings - www.majors-welt.net
Thanks for the help, maybe this can be a good starting point now. greets, tom ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Help with Gcolor3

2017-10-25 Thread Emmanuele Bassi
On 25 October 2017 at 12:50, Listings - www.majors-welt.net wrote: You probably want to start with a compositor-specific API, like the way screenshot and screen recording is performed in GNOME; if you want more Wayland compositors to follow the same

Re: Help with Gcolor3

2017-10-25 Thread Listings - www.majors-welt.net
On 10/25/17 12:28 PM, Emmanuele Bassi wrote: On 25 October 2017 at 11:19, Listings - www.majors-welt.net wrote: I am a user of a color-picker tool - previously Gcolor2 - that has now been adopted to Gnome3 -> Gcolor3 -> https://github.com/Hjdskes/gcolor3/ Now while

Re: Help with Gcolor3

2017-10-25 Thread Emmanuele Bassi
On 25 October 2017 at 11:19, Listings - www.majors-welt.net wrote: >>> I am a user of a color-picker tool - previously Gcolor2 - that has now >>> been >>> adopted to Gnome3 -> Gcolor3 -> https://github.com/Hjdskes/gcolor3/ >>> >>> Now while lots of linux distributions are

Re: Help with Gcolor3

2017-10-25 Thread Listings - www.majors-welt.net
On 10/25/17 12:05 PM, Emmanuele Bassi wrote: On 25 October 2017 at 09:40, Listings - www.majors-welt.net wrote: Hi folks, i write here, because i dont know where it may fit. You probably want to start a discussion on wayland-devel:

Re: Help with Gcolor3

2017-10-25 Thread Emmanuele Bassi
On 25 October 2017 at 09:40, Listings - www.majors-welt.net wrote: > Hi folks, > > i write here, because i dont know where it may fit. You probably want to start a discussion on wayland-devel: https://lists.freedesktop.org/mailman/listinfo/wayland-devel This list is

Help with Gcolor3

2017-10-25 Thread Listings - www.majors-welt.net
Hi folks, i write here, because i dont know where it may fit. I am a user of a color-picker tool - previously Gcolor2 - that has now been adopted to Gnome3 -> Gcolor3 -> https://github.com/Hjdskes/gcolor3/ Now while lots of linux distributions are switching to wayland as default session the

Re: GtkFileChooser problem

2017-10-25 Thread tito-wolit
On 10/25/2017 12:43 AM, rbd wrote: > > > Hi all, > > I have done some further experimentation with regard to my > GtkFileChooser problem and discovered that the piece of my code that > seems to be triggering this problem is the call to > gtk_file_chooser_set_current_name() -- if I remove

Re: GtkFileChooser problem

2017-10-24 Thread rbd
Hi all, I have done some further experimentation with regard to my GtkFileChooser problem and discovered that the piece of my code that seems to be triggering this problem is the call to gtk_file_chooser_set_current_name() -- if I remove that then I do not get the error described in my last

GtkFileChooser problem

2017-10-23 Thread rbd
Hi all, I am having a problem with GtkFileChooser when the chooser action is set to GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER, i.e., I want to allow the user to specify any existing or as-yet-nonexistent directory. The documentation says that use of GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER: "...

Re: Two issues with librsvg

2017-10-23 Thread Tristan Van Berkom
With a very brief look at your valgrind output i can tell you that you need a suppressions file. You may be leaking, but you are also counting GType registration as "possibly lost", this is constant data for static types which will be allocated once and remain on the heap for program lifetime,

Two issues with librsvg

2017-10-23 Thread Oren Ben-Kiki
My main issue is that librsvg seems to not find sub elements by id. Specifically, rsvg_handle_has_sub returns false, and therefore querying for the element's size and position fails. I'm probably doing something wrong here... or is this a bug? I really want the ability to access sub-elements size

Re: Two issues with librsvg

2017-10-23 Thread Oren Ben-Kiki
Oops, the sample program I gave was missing the call to rsvg_handle_close. However, adding it doesn't change anything. The corrected program is: --- cheese.cpp --- #include #include using namespace std; static const char s_svg[] = R"EOF( )EOF"; int main() { cerr << "RSVG VERSION: " <<

Re: No protocol specified error

2017-10-22 Thread Felipe Borges
whatever man On Sat, Oct 21, 2017 at 2:25 AM, David Margerison wrote: > On 20 October 2017 at 22:33, Felipe Borges wrote: >> >> Running GUI applications as root is hardly discouraged. > > The English language can be surprising, so I write

Two issues with librsvg

2017-10-21 Thread Oren Ben-Kiki
My main issue is that librsvg seems to not find sub elements by id. Specifically, rsvg_handle_has_sub returns false, and therefore querying for the element's size and position fails. I'm probably doing something wrong here... or is this a bug? I really want the ability to access sub-elements size

GTK+ app performance optimization

2017-10-21 Thread Shaunak Gupte
Hi, I am developing an app which has a 2D grid (approx 3 cols x 6 rows) of thumbnails of images and an accompanying label. The elements in the grid need to be rearranged / removed / new added at runtime (Peak could be 5-6 times a second). Currently my rearrangement algorithm is not optimized

Re: No protocol specified error

2017-10-21 Thread David Margerison
On 20 October 2017 at 22:33, Felipe Borges wrote: > > Running GUI applications as root is hardly discouraged. The English language can be surprising, so I write this short note to help avoid confusion. 400 years ago, your sentence above would be correct. But the

An interesting problem with help presenting related

2017-10-20 Thread Hammer Attila
Hi, Possible any package corrupted my Ubuntu 16.04 developer system or a package is not installed? I newer seeing following issue with Orca screen reader for example, look the traceback error message: If I press Orca modifier, press F1 key, I see following traceback error message the debug

Please forgive me.

2017-10-20 Thread Bruggemann Eddie
Hi to all the members, I want to make you sincerely excuses for the injuries I post on this mailing-list. Concerning the Gtk-3 maintainer and everybody that I have hurt. I'm sorry for: for all the injuries I have said to the GTK-Team on the mailing list (gtk-app-devel-list@gnome.org

Re: No protocol specified error

2017-10-20 Thread Felipe Borges
On Fri, Oct 20, 2017 at 1:18 PM, Lokesh Chakka wrote: > Dear Felipe, > > Thanks for the information. > Is it possible to login with my credentials and execute as sudo ./a.out. > > Can u help me how to make it work ? Running GUI applications as root is hardly

Re: No protocol specified error

2017-10-20 Thread Lokesh Chakka
Dear Felipe, Thanks for the information. Is it possible to login with my credentials and execute as sudo ./a.out. Can u help me how to make it work ? Thanks & Regards -- Lokesh Chakka, Mobile: 9731023458 On Fri, Oct 20, 2017 at 4:43 PM, Felipe Borges wrote: > On

Re: No protocol specified error

2017-10-20 Thread Felipe Borges
On Fri, Oct 20, 2017 at 1:01 PM, Lokesh Chakka wrote: > Hello, > > I am using simple program > > #include > > int main(int argc, char *argv[]) > { > GtkWidget *window; > gtk_init(NULL, NULL); > window = gtk_window_new(GTK_WINDOW_TOPLEVEL); >

No protocol specified error

2017-10-20 Thread Lokesh Chakka
Hello, I am using simple program #include int main(int argc, char *argv[]) { GtkWidget *window; gtk_init(NULL, NULL); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_show(window); g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL); gtk_main();

Re: GTK PageSetupUnixdialog

2017-10-17 Thread Eric Cashon via gtk-app-devel-list
Hi Thomas, What language are you using? I think that the best tutorial for GTK+ right now is the gtkmm tutorial. They have a section on printing. https://developer.gnome.org/gtkmm-tutorial/stable/chapter-printing.html.en If you aren't programming in C++ the tutorial still is a good

GTK PageSetupUnixdialog

2017-10-17 Thread Thomas Rønshof
Hi, Does anybody have examples for GtkPageSetupUnixDialog, how to call it and then get the current selected settings like papersize, orientation an so on. BR Thomas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-16 Thread Eric Cashon via gtk-app-devel-list
Hi Attila, The text buffer does return the correct number of chars with spaces. If I get a char count on the lines with or without numbers it returns the correct number. When I export to PDF the layout is the same as the print preview. When I test with pdftotext then, as you say, it doesn't

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-15 Thread Hammer Attila
Hi Eric, This test code me works correctly too if keeping the line numbers each blank lines. If have a number before a simple \n line, the correct line positioning happening when I trying convert back the generated pdf file with pdftotext -layout command. The last line of the first page right

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-15 Thread Eric Cashon via gtk-app-devel-list
OK, you got me on the PDF. I don't know about that. I think a monospace font will help though because they are easier to keep track of rows and columns since all the characters are in the same sized rectangle. The Marburg font is also in a constant sized rectangle. I don't know how to put

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-15 Thread Hammer Attila
Hi, I think the last post described exactly what the problem. I using the pdftotext test only because me not have a Braille printer hardware, and any way need verifying the real printed output with equals exactly the LiblouisUTDML file2brl command generated formatted text braille output file

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-15 Thread Yuri Khan
On Sun, Oct 15, 2017 at 1:42 AM, Eric Cashon via gtk-app-devel-list wrote: > The first thing that I would try out is to change the font that is being > drawn to see if that works. I am getting an impression that fonts are not going to make any difference. The OP

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-14 Thread Eric Cashon via gtk-app-devel-list
Here is something else that might help. Try a monospace font to test with. If you use a monospace font then your spacing should be kept correct. If I draw a grid around the characters, monospace will hold the spacing to the 28x32 grid. Eric ... new_font = Pango.FontDescription("Monospace

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-14 Thread Eric Cashon via gtk-app-devel-list
Hi Attila, I don't know the internals of how Pango deals with the different fonts for putting them on a layout. I have bumped into utf8_casefold() and utf8_normalize() before so I know fonts can get complicated. Maybe someone with more knowledge than I have about this can help. The first

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-14 Thread Hammer Attila
Hi, I forgot to attach Marburg medium standard specification link: http://webcache.googleusercontent.com/search?q=cache:g7kWlTjQ24YJ:https://www.pharmabraille.com/pharmaceutical-braille/marburg-medium-font-standard/%2Bmarburg%2Bmedium%2Bstandard=ubuntu=ZxJ=fs=0=hu=clnk Attila

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-14 Thread Hammer Attila
Hi Eric, Unfortunatelly I only possible testing the printed PDF output with pdftotext command and Orca screen reader, because I entire not seeing the screen. I looked the test program generated pdf output. When I converted the test file with pdftotext test.pdf -layout command, the .txt file

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-13 Thread Eric Cashon via gtk-app-devel-list
Hi Attila, You have a print dialog and click on "Print to File" to save the contents to a PDF file and that file is not being formatted correctly and isn't the same as what is in the print preview? I tried a small test program. It prints well to PDF with the extra lines. Does this program

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-13 Thread Hammer Attila
Hi List, Sorry, but unfortunatelly duplicated sent my letter. When first time sent my letter, longer time later I not seeing my post this list. Attila ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-13 Thread Hammer Attila
Dear list, Possible you have an ydea with following problem: I have a little Python3 code part with uses GtkSource.View and GtkSource.PrintCompositor to print native text file content with Gtk.Printoperation class. The example code is following: #!/usr/bin/env python3 import gi

GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-13 Thread Hammer Attila
Dear list, Possible you have an ydea with following problem: I have a little Python3 code part with uses GtkSource.View and GtkSource.PrintCompositor to print native text file content with Gtk.Printoperation class. The example code is following: #!/usr/bin/env python3 import gi

Re: incompetent heretic GTK+ maintainers !

2017-10-12 Thread Andy Tai
You should come forward and do this yourself. You have no excuse not to On Oct 10, 2017 9:00 AM, "Bruggemann Eddie" wrote: > Hi to all the Gtk team, > > I wonder why you say that we can handle the native File chooser on Windows, > > because the only action

Re: works inside MSYS2 but not outside ?

2017-10-12 Thread Tilo Villwock
Hello Eddie, as a general recommendation: tone it down a little. So far we've seen you either insult everybody or fake humbleness. Neither is really appreciated. As for your problem: You still haven't stated which exact GTK version your using. And you haven't provided any output from your actual

works inside MSYS2 but not outside ?

2017-10-11 Thread Bruggemann Eddie
Hi to all the Gtk team, At first I want to excuse me for all the insanity I have written newly on this mailing-list. I was in hate and it's surely my fault when my program crash not the fault of the Gtk maintainers. --- I go into my problem: Try it out Like this: [CODE] #include

incompetent heretic GTK+ maintainers !

2017-10-10 Thread Bruggemann Eddie
Hi to all the Gtk team, I wonder why you say that we can handle the native File chooser on Windows, because the only action which works outside from the MSYS2 environment, is the /|GtkFileChooserAction = |//|GTK_FILE_CHOOSER_ACTION_OPEN ?|/ /|---|/ /|The others actions doesn't work if you

Re: How to set the size of a combo box?

2017-10-08 Thread Eric Cashon via gtk-app-devel-list
Hi Lars, There are a few things that you can try to see if you can get the combo box to format how you want it. The first is to create the combo with gtk_combo_box_new_with_model(). That way you can setup your cell renderer and be able to set properties of how the combo box is going to be

How to set the size of a combo box?

2017-10-08 Thread Lars Paulsen
Hello All, I have created a combo box and it is nicely displayed in my window. But it always takes the full window size. I would like to limit the size in that way, that it always takes 1 row height or better say the height of the text line or font size (1em in CSS encoding). I have only

Catching machine suspend events

2017-10-01 Thread David Llewellyn-Jones
Hi, I have a service that runs a gtk main loop using g_main_loop_run(). I'd like to know when the machine is about to be put into a suspend state, ideally before the screen gets locked. Are there any glib signals I can connect to for this? If not, should I be using dbus to listen for

Scrolled TreeView and size allocation warnings

2017-09-30 Thread Dino Aljević
Hello, I recently posted a question on stackoverflow.com regarding GTK Warnings I recieve when running my application. You can read full question here on this link , but in

Re: A bug no one talks about: g_object_new: assert

2017-09-26 Thread Arnaud
Hi ! On 09/26/2017 10:24 PM, psp...@mail.bg wrote: > (Notification Project.exe:27780): GLib-GObject-CRITICAL **: g_object_new: > assertion 'G_TYPE_IS_OBJECT (object_type)' failed What it means is that, during a call to g_object_new

A bug no one talks about: g_object_new: assert

2017-09-26 Thread pspgen
I use the newest GTK+ installed with MSYS2 and whenever I attempt to use g_application_send_notification() it always results in the following assert: (Notification Project.exe:27780): GLib-GObject-CRITICAL **: g_object_new: assert ion 'G_TYPE_IS_OBJECT (object_type)' failed Why I think it

<    2   3   4   5   6   7   8   9   10   11   >