Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-21 Thread Michael Torrie via gtk-app-devel-list
Is the subject line of this thread a freudian slip? We are definitely moving toward discord, from the complaints! On 03/21/2019 09:33 AM, Emmanuele Bassi via gtk-app-devel-list wrote: > On Thu, 21 Mar 2019 at 02:28, Matthew A. Postiff via gtk-app-devel-list < > gtk-app-devel-list@gnome.org> wrote

Re: gtk_init() command-line args

2018-05-15 Thread Michael Gratton
tion, which will call this for you, and aso provides a structured way of handing command line arg parsing. ;) Especially since that (IIRC) the plan for GTK+4 is to remove all GTK-specific command line args anyway. //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙

Re: Scrolling to a GtkListBoxRow after adding it to a GtkListBox

2018-04-16 Thread Michael Gratton
nnect_after on size-allocate? Or connecting to map-event signal on that widget? Or spinning on gtk_events_pending() until all are done, then scroll down? Good suggestions, but size-allocate does indeed seem to be the right signal. Thanks for your help! //Mike -- ⊨ Michael Gratton, Perce

Scrolling to a GtkListBoxRow after adding it to a GtkListBox

2018-04-14 Thread Michael Gratton
ocate signal is fired. As I mention, connecting to size-allocate on the row usually works, but configure and map either don't work or don't help. Does anyone have any better suggestions? Cheers, //Mike -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/>

Re: Header bar: Keyboard accessibility?

2017-06-23 Thread Michael Torrie
On 06/23/2017 12:35 PM, Yuri Khan wrote: > On Sat, Jun 24, 2017 at 1:21 AM, Michael Torrie wrote: > >>> I’m on 3.18, and here’s my test application/mockup: >>> >>> http://yurikhan.github.io/images/20170623-gtk-header-bar.png >> >> Oh I see. Yes th

Re: Header bar: Keyboard accessibility?

2017-06-23 Thread Michael Torrie
On 06/23/2017 11:15 AM, Yuri Khan wrote: > What GTK3 version are you on? Could you make a screenshot so I could > see we’re talking about the same thing? Gtk 3.20 here. > > I’m on 3.18, and here’s my test application/mockup: > > http://yurikhan.github.io/images/20170623-gtk-header-bar.png Oh I

Re: Header bar: Keyboard accessibility?

2017-06-22 Thread Michael Torrie
On 06/22/2017 12:03 PM, Yuri Khan wrote: > And now for the title question. In this latter scenario, how does the > user access the application menu without having to use a pointing > device? Is every application supposed to implement that? As a > developer, how would I go about that? As a user, wha

Re: Cross platform development

2017-03-18 Thread Michael Torrie
On 03/18/2017 10:07 AM, Michael Torrie wrote: > He wants to put just the GTK3 dependencies in a tree > somewhere. To do that simply, he could unpack the GTK3 (and glib2) > binary pacman packages if they could be located. Got it. I think they can be downloaded individually he

Re: Cross platform development

2017-03-18 Thread Michael Torrie
On 03/18/2017 09:16 AM, pelzflorian (Florian Pelz) wrote: > MSYS2 ships with the pacman package manager. After you have followed the > instructions on the website, launch the MSYS2 shell from the MSYS2 > folder and then this command installs everything you need to run gedit > into a filesystem tree

Re: Cross platform development

2017-03-18 Thread Michael Torrie
On 03/18/2017 07:37 AM, Dirk Gottschalk via gtk-app-devel-list wrote: > The only chance is, to grab the DLLs from MinGW via objdump ore some > similar, like recommended and pack them into the applications working > directory, because Windows searches DLLs in its System, System32 > subfolders and in

Re: Cross platform development

2017-03-17 Thread Michael Torrie
On 03/17/2017 04:02 PM, Dirk Gottschalk via gtk-app-devel-list wrote: > 1. Which DLLs do i have to copy from the bin directory of MinGW for my > GTK+-Application. I don't want to install MinGW on all Workstations > where the app should rum. AFAIK it is enough to copy the DLLs into the > application

Re: GTK3 Glade and rendering in Windows/Linux]

2017-01-31 Thread Michael Torrie
On 01/31/2017 05:54 AM, Happy wrote: > > Thanks for the note. Hope the following links work. As you can see the > windows are much different in size as well as the spacing. > > Ubuntu: > https://drive.google.com/file/d/0BxjwKUaYdW_zYnUydWExX2NNdE0/view?usp=s > haring > > Windows: > https://drive

Re: The Big Gtk limitations: a reliable GUI builder

2016-11-29 Thread Michael Torrie
On 11/29/2016 04:28 PM, pozzugno wrote: > First of all, I'm using Glade 3.20.0 for Windows, installed through > Msys2 project. I don't know if Glade is more stable under Linux OS. In my opinion, GTK is definitely more stable under Linux than Windows. he truth is, 90% of GTK developers (or more) a

Re: GTK+ 2 and prelight

2016-11-16 Thread Michael Torrie
On 11/15/2016 08:10 AM, Gabriele Greco wrote: > It's a functional behaviour, not only aesthetics since a toggle button in > prelight state can be both active or not, but you can't see its state until > you move the mouse pointer... That seems to depend on the theme. I use a modified ClearLooks th

Re: SpinButton: how to avoid calling signal handler when set_value()

2016-11-02 Thread Michael Torrie
On 11/02/2016 05:19 PM, pozzugno wrote: > It seems pyGObject implementation gives only two "handler block" > functions: handler_block(), that needs the handler_id that I don't have; > handler_block_by_func() that needs the callback to block (the same > problem of your solution, because I have di

Re: Farewell

2016-05-20 Thread Michael Torrie
Ahh I see there are other more recent posts that I had not read yet. My apologies. I see that he acknowledged finally that the conclusion people arrived at before (that argv[] isn't populated by default when using assembly on Windows) was correct. That's progress! ___

Re: Farewell

2016-05-20 Thread Michael Torrie
On 05/09/2016 09:24 AM, Ardhan Madras wrote: > Its been long time since I've posted to gtk-app-devel-list, this is the > best joke ever! > I'd eat my cheap keyboard for other post like this. Indeed. Kudos to the devs and other list posters who patiently tried to help the OP solve what was clearly

Re: GTK+ accessibility

2015-07-16 Thread Michael Torrie
On 07/16/2015 01:39 AM, Miroslav Rajcic wrote: > On 15.7.2015. 14:12, Emmanuele Bassi wrote: >> you probably want to contact the gnome-accessibility team, on >> gnome-accessibility-l...@gnome.org. > > Will do as suggested, thanks. F10 seems to focus on the menu on GTK apps. That could be a good

Re: Misconduct of GTK+/glib Bugtracker Admins

2015-06-04 Thread Michael Torrie
On 06/04/2015 01:11 PM, IgnorantGuru wrote: > All that needs to be done to fix it is add the traditional > location used for fuse mounts to the heuristics - a 5 minute job. Have you submitted a patch then? I have a hard time seeing how any of the devs would refuse a well-written patch that fixes

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

2015-03-06 Thread Michael Torrie
On 03/06/2015 08:23 AM, Michael Cronenworth wrote: > On 03/06/2015 08:52 AM, Michael Torrie wrote: >> No, this is not quite what I am asking for. Capturing keyboard events >> is fine, but I need the button to click visually, for feedback purposes. >> Just like what happ

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

2015-03-06 Thread Michael Cronenworth
On 03/06/2015 08:52 AM, Michael Torrie wrote: No, this is not quite what I am asking for. Capturing keyboard events is fine, but I need the button to click visually, for feedback purposes. Just like what happens if you define the control key shortcut and press that. So the question is either

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

2015-03-06 Thread Michael Torrie
On 03/05/2015 09:31 PM, Jim Charlton wrote: > I presume you have a callback function connected to the button press > event. Just create code to intercept the keyboard event and go to a > callback function that sees what key was pressed and then calls the same > function that would have been cal

How to make a GtkButton respond to a key press

2015-03-05 Thread Michael Torrie
Maybe I'm just not reading right, but I cannot figure out how to make a GtkButton respond to a single key press. For example, if I made a simple calculator like the one that comes with Gnome, how can I make it so when I press '1' on my keyboard, the 1 button presses. I know how to make shortcuts

Re: GTK+_failed installation

2015-01-06 Thread Michael Torrie
On 01/05/2015 03:28 AM, Nabil Ferguen wrote: > Dear Team GTK, > > I would like to install gtk+ (for OOF2D) on ubunto 12.04, and I have > successfully installed all packages (pango, glib, gdk-pixbuf, atk) but > the compiler fails and sends an error message linked to the atspi-2 > package (requires

Re: Understanding accelerators.

2014-10-07 Thread Michael Cronenworth
On 10/07/2014 09:18 AM, Gergely Polonkai wrote: Mnemonics are discouraged by the HIG, and AFAIK they are not displayed by recent GTK versions. From the user's perspective, I think there is no difference. However, if you are using GApplication/GtkApplication, it is easier to register accels, and

Re: Understanding accelerators.

2014-10-07 Thread Michael Cronenworth
On 10/07/2014 04:45 AM, Oscar Lazzarino wrote: I'm trying to understand the difference between accelerators and the “key-press-event” signal. Let's say I have a window with just one button "quit". I'd like to handle the q key event to quit the application. I now I can connect to the top window

Re: Custom Titlebar

2014-08-11 Thread Michael Cronenworth
On 08/11/2014 04:40 PM, David Nečas wrote: Unless you are running someting like Gnome 3(?), this will add a strangely looking thing to the top of your window, but inside. It will not change the title bar which is controlled by the window manager. I've never seen it actually do what is advertise

Re: Custom Titlebar

2014-08-11 Thread Michael Cronenworth
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 former then it's a simple call. I'll use the C function: gtk_window_set_title( GTK_WINDOW( window ), "H

Re: g_spawn*() on windows

2014-07-03 Thread Michael Cronenworth
On 07/03/2014 08:33 AM, jcup...@gmail.com wrote: Yes, I'm doing that. It all works and I can capture stdout and stderr from the convert.exe I'm running, it's just that I get a very annoying command window flash on the screen each time. If anyone has any ideas about the command window, I'm all ea

Re: final gtk+maverick battles

2014-02-19 Thread Michael Torrie
On 02/17/2014 05:05 AM, Bric wrote: > FWIF: with this drive to keep upgrading, I just lost a critical hour of > sleep (I start new class material today and needed to be rested) because > I messed up the one and only thing you should NEVER mess up in your > system: network (wifi) connection (if

Re: final gtk+maverick battles

2014-02-16 Thread Michael Torrie
On 02/16/2014 04:30 AM, Bric wrote: > Nonetheless, I run ./configure in gtk+ git, and I am still getting unmet > dependencies: > > configure: error: Package requirements (glib-2.0 >= 2.39.5atk >= > 2.7.5pango >= 1.32.4cairo >= 1.12.0 cairo-gobject >= 1.12.0 > gdk-pixbuf-2.0 >= 2.

Re: "Can't link to Pango"

2014-02-13 Thread Michael Cronenworth
Bric wrote: Here is my config.log : http://www.flight.us/misc/gtk_config.log.txt Your log shows your system libraries are mismatched in some way. > /usr/local/lib/libpangocairo-1.0.so: undefined reference to `pango_fc_font_create_base_metrics_for_context' _

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-04 Thread Michael Cronenworth
On 01/04/2014 05:21 PM, Jordan H. wrote: In Glade I've defined column "0" in the list store as a "gchararray" cell. I even tried forcing the assignment of GtkListStore to GtkTreeView (knowing full well I wouldn't need to) to no avail. I don't get any errors, but the GtkTreeView doesn't reflect t

Re: Delay time to spawn new threads?

2013-11-27 Thread Michael Torrie
On 11/27/2013 12:59 PM, David Buchan wrote: > Hi Michael, > > My 32-bit, GTK+2 version does > > // Secure glib > if (!g_thread_supported ()) { > g_thread_init (NULL); > } > > at the beginning, and then the thread is spawned via: > > on_button1

Re: Delay time to spawn new threads?

2013-11-27 Thread Michael Torrie
On 11/27/2013 08:29 AM, David Buchan wrote: > I have written a program which spawns a new thread when the user > clicks a button. The new thread does something noticeable immediately > after starting, so I know when the thread has begun. What I mean is, > if I run that piece of code that is execute

Re: changing font, color, size, etc. in a GtkEntry

2013-11-06 Thread Michael Cronenworth
Eric Wajnberg wrote: However, as I've mentioned in my original post, functions like pango_font_description_from_string, etc. are not recognized in my coding environment (while I can define pointer to things like PangoFontDescription without problem). This looks weird to me. Is there some specifi

Re: changing font, color, size, etc. in a GtkEntry

2013-11-05 Thread Michael Cronenworth
Eric Wajnberg wrote: I simply want to modify the font, color, size, etc. of the characters entered while they are typed in a GtkEntry. I am coding with GTK 2.24.0. Looking around on the web, I found several possible functions to do that, some of them seem to be specific to GTK3, however. I found

Re: GtkEntry ... change size

2013-10-28 Thread Michael Cronenworth
On 10/28/2013 08:55 PM, Mariano Gaudix wrote: The GtkEntry continuous big . gtk_box_set_child_packing( GTK_BOX( box ), entry,FALSE, TRUE, 0, GTK_PACK_START ); the sentence don't work . You need a widget adjacent to your entry to take up the space you don't want filled by your entry... (say

Re: GtkEntry ... change size

2013-10-28 Thread Michael Cronenworth
Mariano Gaudix wrote: ¿ how I disable expansion ? I used the sentences . gtk_widget_set_vexpand (GTK_WIDGET(entry ) , FALSE ) ; gtk_widget_set_hexpand (GTK_WIDGET(entry ) , FALSE ) ; But these sentencesdon't run . I know those are the new "GTK3" functions, but I still mainly use G

Re: Signal of a button dynamically created

2013-10-28 Thread Michael Cronenworth
Borja Mon Serrano wrote: The point here is: how can I know what button was pressed in order to remove a row? You need to attach to the "clicked" signal on each button[1]. Each button could call a separate function or you can pass a pointer to different values to know which button is which.

Re: GtkEntry ... change size

2013-10-28 Thread Michael Cronenworth
Mariano Gaudix wrote: I can not change the size to GtkEntry . I am using Gtk 3.6 . I need a GtkEntry small , for my graphic interface . GTK expands widgets to fill space by default so setting widget size has no visible effect. You need to disable expansion. I'll add a general

Re: GtkCellRenderer for GtkButton or GtkSwitch

2013-05-03 Thread Michael Cronenworth
On 05/03/2013 02:29 PM, D.H. Bahr wrote: > Ok, does anyone have some working code with similar effects? I've never > coded my own widgets before, so I'm not sure how to do so. You can take a look at this page[1], but I cannot vouch for its relevecy with current GTK2 or GTK3. Your question was ask

Re: GtkCellRenderer for GtkButton or GtkSwitch

2013-05-03 Thread Michael Cronenworth
On 05/03/2013 11:30 AM, D.H. Bahr wrote: > Is it possible to display a GtkButton or a GtkSwitch within a TreeView > row (that is a GtkCellRenderer of some kind)? Yes, but unfortunately there isn't a convenience function for it. You will have to create a custom renderer. ___

Re: Updating GUI during long operation

2013-04-25 Thread Michael Torrie
On 04/25/2013 08:04 PM, Kip Warner wrote: > Hey Chris. Your message was not very useful again, but thanks anyways. > As you realized after, the problem may be too many graphical related > events through the main loop. I will try adjusting the animation's > framerate and seeing if I can get the work

Re: Release of next binary GTK+2 package for Windows?

2013-03-12 Thread Michael Cronenworth
On 03/12/2013 08:24 AM, Serrano Pereira wrote: > We are currently using GTK+ 2.24.10 on Windows 7 (the binary package > from gtk.org) which is affected by bug 685959 "Memory leak on every > redraw of a widget" which causes our application to crash with an out of > memory error. Has the fix been rel

Re: switch printer tray during printing

2013-03-11 Thread Michael Cronenworth
all sorts of odd shaped data to print in different ways to different paper sizes and trays in one go. I have it working for me now without too much pain, but if I ever have an epiphany I'll be sure to share it. Thanks, Michael ___ gtk-app-devel-list m

Re: switch printer tray during printing

2013-02-21 Thread Michael Cronenworth
Michael Cronenworth wrote: > Does anyone know if GTK allows switching print trays in the middle of a > GtkPrintOperation? > > I tried setting the source to Tray 2 in the "request-page-setup" signal > for the second page, but this did not work. The second page printed to

Re: parsing bibtex using gscanner

2013-02-21 Thread Michael Torrie
On 02/18/2013 11:15 AM, Rudra Banerjee wrote: > On Mon, 2013-02-18 at 19:02 +0100, David Nečas wrote: >> The best approach to parse a grammar is, you know, using a parser. > So anything better then bison? You can write your own parser if you want. Maybe a recursive-descent parser. You will want t

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-13 Thread Michael Cronenworth
Olivier Guillion - Myriad wrote: > Is there a way to prevent a clicked window from being automatically sent to > top > of the stack ? > Any help would be greatly appreciated. You can use gtk_window_set_transient_for() to force stack ordering. ___ gtk-

Re: Get the summary from a key in GSettings

2013-02-12 Thread Michael Cronenworth
rastersoft wrote: > I'm creating an extension for Gnome shell and want to simplify some > parts of the configuration. To do so, I need to get the summary text > from GSettings, given its key. I've been checking the C API but I can't > find a suitable method. Is there a way of doing it without parsi

Re: GUI freezes waiting for callback function to return

2012-12-16 Thread Michael Torrie
On 12/15/2012 11:08 AM, Mateusz Marzantowicz wrote: > Very valuable articles and blog posts. > > Now I know that threading in GUI apps (using GTK+) is much harder then I > originally thought it is. Although my use case is very simple I must > employ complicated threading machinery. I'm playing wit

Re: Change background color in GtkTreeView

2012-11-29 Thread Michael Cronenworth
Tomasz Jankowski wrote: > I'm working on UI for embedded system using GTK+ 2.24. I want to > change GtkTreeView background (area behind rows, which is by default white) > to match default color of window area (grey by default). > I retrieved GtkStyle associated with GtkWindow and looked for this >

switch printer tray during printing

2012-10-31 Thread Michael Cronenworth
Does anyone know if GTK allows switching print trays in the middle of a GtkPrintOperation? I tried setting the source to Tray 2 in the "request-page-setup" signal for the second page, but this did not work. The second page printed to Tray 1 (default). Thank

Re: GtkHBox child replacement

2012-10-24 Thread Michael Cronenworth
Piotr Sipika wrote: > While updating the text inside the label is easy (via > gtk_label_set_text()), what's the best way to update the icon child, > assuming it's a GtkImage and I have an updated GdkPixbuf for a new icon? You want to call gtk_image_set_from_pixbuf(). Don't forget to call g_object_

Re: Clarification on recent deprecations

2012-10-24 Thread Michael Cronenworth
David Buchan wrote: > Do > I need to change the link to gmodule-2.0? To be honest, I really don't > understand what it's for. Is there a good explanation somewhere? You can always find your pc files in: /usr/lib{64}/pkgconfig Example: /usr/lib64/pkgconfig/gmodule-2.0.pc Inside the file will c

Re: GTK+3 fonts

2012-10-21 Thread Michael Torrie
On 10/21/2012 01:58 PM, Roger Davis wrote: > % fc-match Sans > DejaVuSans.ttf: "DejaVu Sans" "Book" > > And if I put them back, things are restored as before: > > % fc-match Sans > Vera.ttf: "Bitstream Vera Sans" "Roman" > > Can anyone explain how this works? Is there some complicated font > pa

Re: GTK+3 fonts

2012-10-21 Thread Michael Torrie
On 10/21/2012 04:16 AM, Roger Davis wrote: > Any explanation for these mysteries, or any pointers to some decent > documentation on Gnome 2/3 font configuration and installation? If you are using Gtk+3 with the native/quartz backend, then the fonts it uses are coming from the native OS X font sys

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-12 Thread Michael Torrie
On 10/10/2012 06:17 AM, Filip Lamparski wrote: > Thanks, your method works. However, it still takes the program quite a bit > to load up, and my problem is that I want display the window as soon as > possible. If that helps, here is how the program loads up: > Script starts > The window is construc

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread Michael Torrie
On 10/07/2012 08:41 PM, Simon Feltman wrote: > On Sun, Oct 7, 2012 at 12:29 PM, Filip Lamparski > wrote: >> On 7 October 2012 12:58, wrote: >> >>> To have the load in another process, use a pipe to send worker results >>> back to the main process, and add the pipe to your gtk main loop as an >>>

Re: GTK window positioning

2012-09-19 Thread Michael Cronenworth
David Buchan wrote: > gtk_window_set_position (GTK_WINDOW (window1), GTK_WIN_POS_NONE); [snip] > > I find that the two windows are always placed right on top of each other. I > can drag the top one off the one underneath, but I'd like the window manager > to choose placements that are separate

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Cronenworth
Tomaz Canabrava on 09/10/2012 11:27 AM wrote: > Well, actually there's an working Qt version for Android, called Necessitas. > so, there's no need to 'waste your time porting', it's already ported. Wow! Everyone is an expert! @kde.org! Sweet! /sarcasm Anyone else want to tell me something I alre

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Cronenworth
Ardhan Madras on 09/10/2012 11:08 AM wrote: > Actually, there is a Java based X11 Server running on Android and was > available in Play Store (Android Market). Yes, I am fully aware of this app. However, it is not a usable solution. It was written from the ground up so who knows what part of the X

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Cronenworth
Michael Torrie wrote: > GTK+ could be ported to Android of course, but again, but that would > require considerable effort. Laying aside Java for a moment, Android > apps are built and run very differently than desktop apps. The > application life cycle is quite different. No

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Torrie
On 09/09/2012 11:40 PM, Tristan Van Berkom wrote: > interesting, wouldnt the quartz backend for osx build for iOS ? > > not exactly sure but I think the NSView and highlevel cocoa stuff > is built upon the same low level windowing apis that are available > on osx... I'm sure it could be ported of

Re: gtk apps on iOS/Android?

2012-09-09 Thread Michael Torrie
On 09/07/2012 07:40 AM, Allin Cottrell wrote: > I'm contemplating trying to produce a version of my gtk app > for tablet use. Can anyone point me to relevant resources or > examples? At this point I'm totally clueless about porting to > tablets (though I'm able to build my app for OS X OK), and

Re: path for icon

2012-09-04 Thread Michael Cronenworth
On 09/04/2012 11:58 PM, Frank Cox wrote: Here is the answer: https://mail.gnome.org/archives/gtk-app-devel-list/2012-September/msg2.html Depending on your needs, here is a different answer: https://mail.gnome.org/archives/gtk-app-devel-list/2012-September/msg4.html I myself went with

Re: [RFC] Why GtkMenuItem hide_on_activate property is not taken into account?

2012-08-31 Thread Michael Cronenworth
Tomasz Bursztyka wrote: [snip] > So my question is: how to get this behavior for my GtkSwitchMenuItem, > properly done with existing GtkMenuShell/GtkMenuItem functions/signals? > What signals should I catch or which function should I override? You're better off proposing this patch in a bug repo

Re: widget_destroy() question

2012-08-16 Thread Michael Cronenworth
On 08/16/2012 09:03 PM, Vlasov Vitaly wrote: For example, i got frame in which packed vbox. In vbox packed in five buttons. If i call gtk_widget_destroy(), all packed widget's will be destroyed? or only frame? Calling widget_destroy will automatically destroy child widgets. If you want

Re: Passing data to a callback (again)

2012-07-31 Thread Michael Cronenworth
Frank Cox wrote: > What have I missed? Not all callbacks perform the same function. That is why you must consult the documentation for the signal you want to catch. The g_signal_connect() function does indeed only pass one pointer for the fourth argument "data". All signals have a "data" argument

Re: Open file from menu

2012-07-09 Thread Michael Cronenworth
Rudra Banerjee wrote: > 1) putting the above block inside "if (argv[1] != "NULL")" is giving a > segmentation fault: Are you checking argc? If you are not passing an argument argv[1] does not exist so, yes, you will get a segfault for running beyond the argv[] array. if ( argc > 1 && argv[1] != N

Re: GtkPrintOperation uses wrong scale on Windows ?

2012-06-27 Thread Michael Cronenworth
Geert Janssens wrote: > I rewrote my code to no longer use cairo_identity_matrix (altering some > of our own transformations to cope with this), and now the pages print > fine on Windows as well. Good deal. I'm glad you figured it out. ___ gtk-app-devel

Re: GtkPrintOperation uses wrong scale on Windows ?

2012-06-26 Thread Michael Cronenworth
Allin Cottrell wrote: > Sorry, I don't have a solution, but I can confirm the problem. It has > been there for a long time (since GTK 2.16 or earlier). > > When I first came across the issue I tried messing with the GTK_UNIT_* > arguments till I was blue in the face, to no avail. I also tried > in

Re: GtkPrintOperation uses wrong scale on Windows ?

2012-06-26 Thread Michael Cronenworth
Geert Janssens wrote: > Am I doing something wrong here ? Was GNUCash setting units before? If so, what to? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

list of printers

2012-06-25 Thread Michael Cronenworth
lly I'd like to grab a GList of printer names and display them in a ComboBox for user-selection, but I cannot find any GTK functions to do this. Thanks, Michael ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/

Re: Porting Between Linux and Windows

2012-06-23 Thread Michael Cronenworth
On 06/15/2012 07:33 PM, Eric Tavenner wrote: [snip] Other people have answered the rest of your e-mail pretty well. I'd recommend C over C++ as well, as explained in the other e-mails. There are "Hello World" C source files in GTK documentation. Be sure to look them over. http://developer.g

Re: Slow combo box when adding 500 rows

2012-05-24 Thread Michael Cronenworth
Osmo Antero wrote: > Adding rows to a combo box with a GtkListStore is immensely slow. > Is it right that adding 500 rows can take upto 10 seconds and the GUI freezes? I have similar hardware but with the NVIDIA driver so it only freezes for about 2 seconds on my system. [snip] > What is your opi

Re: MSAA or UIA

2012-05-14 Thread Michael Cronenworth
Mike wrote: > Unfortunately I couldnt view the whole thread. Your web page ends in > the middle of the conversation, strangely. The web site doesnt have > links to view the whole thread; it's a horrible mailing list reader. Your web browser must be busted. I can view the entire thread by clickin

Re: MSAA or UIA

2012-05-14 Thread Michael Cronenworth
Mike wrote: > Searches on the internet give me nothing. Who knows when/if gtk+ > applications will be accessible using MSAA or UIA? What are the reasons > we're not there yet? Googling for "uia gtk" brought me this up in 30 seconds: http://comments.gmane.org/gmane.comp.gnome.gtk+.devel.general/

Re: GtkButton bg color

2012-04-30 Thread Michael Cronenworth
Steve wrote: > Any chance you can provide an example of a button with a background > color? GdkColor colorGreen = { 0x, 0x90ff, 0xeeff, 0x90ff }; // without mouse hovering gtk_widget_modify_bg( button, GTK_STATE_NORMAL, &colorGreen ); // with mouse hovering gtk_widget_mod

Re: GtkButton bg color

2012-04-29 Thread Michael Cronenworth
On 04/29/2012 11:30 AM, Steve wrote: gtk_widget_modify_bg(button, GTK_STATE_NORMAL,&color); This is the right call, but I have found that this doesn't work on Windows. Are you running the program in Windows? Coloring works fine for me in Linux. If you're running Linux, your color variable m

Re: GTK program (a Gimp plugin) crashes only on Windows

2012-04-25 Thread Michael Cronenworth
Alessandro Francesconi wrote: > What could be the problem? Is that a good way to update the GtkFrame + > GtkScrollableWindow contents? Or is it a problem related to compiling > arguments/libraries? I would recommend that you gather further debugging information by using gdb instead of relying on t

Re: Formatting dates according to the region

2012-04-16 Thread Michael Cronenworth
Dylan McCall wrote: > However, g_date_time_format(datetime, "%x") only returns a date > formatted in that last way. How can an application use other date > formats for the current region? Preferably without duplicating code, > or, at least, effort. Look at the documentation for g_date_time_format(

Re: Getting the "busy" cursor to display.

2012-04-10 Thread Michael Cronenworth
James Tappin wrote: > Is there some other call (or calls) I should be making to force the updates > to take place? I use the following for widget updates during background processing: while ( gtk_events_pending( ) ) gtk_main_iteration( ); Not sure if it will work for cursor drawing

Re: Re:GtkScrolledWindow/GtkViewport question

2012-03-20 Thread Michael Stegherr
Hi John, alright, thanks for the answer! I thought, there'd be an easy way to do it nicely. Anyway my method works alright. Cheers, Michael On Wed, 2012-03-07 at 09:08 +, jcup...@gmail.com wrote: > Hi Michael, > > Unfortunately I don't think this is easy. > >

Re: Re:GtkScrolledWindow/GtkViewport question

2012-03-06 Thread Michael Stegherr
ing it. It's not the answer to my question though. :) Cheers, Michael ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk+ 2.24 installation problems

2012-03-04 Thread Michael Torrie
On 03/03/2012 08:10 AM, Roger Davis wrote: > Sleeping on things overnight I'm thinking the best option may be to > go back to the default configure options, let all the new packages > dump their stuff in /usr/local, and adjust my environment as > necessary to pick up those libraries, etc., in advan

GtkScrolledWindow/GtkViewport question

2012-03-01 Thread Michael Stegherr
oking forward to an answer! :) Cheers, Michael ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Michael Torrie
On 02/29/2012 02:50 AM, Bernhard Schuster wrote: > If your application license is either GPL or LPGL you are also > allowed to link statically (afaik), so you can deploy a gtk2 and a > gtk3 version. Edit ... so you can deploy a shared and statically > linked application binary. Just to be clear, i

Re: [win32]g_iochannel and USB

2012-02-24 Thread Michael Torrie
On 02/22/2012 06:35 AM, Manuel Ferrero wrote: > I read the thread, now I know I have to link against the right version > of msvcrt.dll. > But I'm compiling with MinGW and according what Tor Lillqvist said in > that thread it should work. > I don't specify any path in my IDE, I just choose the Min

Re: "HELP/About" was :: [Re: suggestions on user config?]

2012-02-19 Thread Michael Torrie
On 02/19/2012 02:25 PM, Gary Kline wrote: > i've been looking for code to learn from. i spotted this botton > layout from the game 'Iagno' but could only find part of its source. > lucky for me that i know c++. be nice if there were some macro like > "GTK_BUTTONBOX_LEFT"! GtkButtonBox is just a

Re: "HELP/About" was :: [Re: suggestions on user config?]

2012-02-19 Thread Michael Torrie
On 02/19/2012 06:38 AM, Tadej Borovšak wrote: > Hi > >>the dialoh has a "Close" button in the lower right. In the >>lower left are two buttons. one is labeled "Credits"; next >>to it is a button labeled "License" that displays the GNU >>copyright. can somebody cl

Re: looking for a program....

2012-02-16 Thread Michael Torrie
On 02/16/2012 12:50 PM, Gary Kline wrote: >> I'm quite sure that what you're looking for is for some screen reader & >> speech synthesis solution, like Orca [1], isn't it? >> If not, or Orca doesn't fit your needs, you can deal with speech-dispatcher >> in a easy way from your application. Controll

Re: window icon resolution

2012-02-08 Thread Michael Cronenworth
Michael Cronenworth wrote: Based on your idea, I noticed other apps only reference the basename of their icon and place the file in /usr/share/icons/hicolor/foo/basename.png. I tried this same behavior and what do you know... Gnome Shell shows my hi-res window icon. Even though this method

Re: window icon resolution

2012-02-08 Thread Michael Cronenworth
Tadej Borovšak on 02/08/2012 11:48 AM wrote: Not an expert, but my guess would be that gnome-shell loads images on it's own based on what is defined in your .desktop file when this file is available. Do you install this file for your app? My .desktop file references the same file (and same path

window icon resolution

2012-02-08 Thread Michael Cronenworth
GdkPixbuf image and loaded it that way. Why would that make a difference? Thanks, Michael ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: no "File", "Edit, "Help" strings in upper left

2012-01-29 Thread Michael Torrie
On 01/29/2012 06:33 PM, Gary Kline wrote: > Do you really mean that is your coming appa you will have no > "File, Edit, Whatever, Help" bars? Or am i misunderstanding > the name of menubar? i like at least File because it > usually gives a way of quitting the app? What h

Re: no "File", "Edit, "Help" strings in upper left

2012-01-29 Thread Michael Torrie
On 01/29/2012 01:41 PM, Gary Kline wrote: > Nada. but it compiles with my gcc string and works as it is coded on > debian linux; on my sub-laptop. but ubuntu: nope. i added gtk-demo > and rebuilt. typing > > $ gtk-demo > > pops up a rectangle with a bunch of items, but the GTK+ Code Demos

Re: need help in looping many times...

2012-01-24 Thread Michael Torrie
On 01/24/2012 07:27 AM, John Coppens wrote: > Wouldn't it be easier to simply add an editor window to your program? > Use for example, the GtkTextView widget. You won't have to spawn > external editors, and always have the text available. > You can even implement cut/copy/paste, re-use recent text,

Re: need help in looping many times...

2012-01-23 Thread Michael Torrie
On 01/23/2012 08:49 PM, Michael Torrie wrote: > On 01/23/2012 07:17 PM, Gary Kline wrote: >> vbc.tgz is enclosed; find someplace to save it, untar and make the >> 'vbc' binary. > > Unfortunately the attachment seems to have been filtered out by the > mailing

Re: need help in looping many times...

2012-01-23 Thread Michael Torrie
On 01/23/2012 07:17 PM, Gary Kline wrote: > vbc.tgz is enclosed; find someplace to save it, untar and make the > 'vbc' binary. Unfortunately the attachment seems to have been filtered out by the mailing list. Can you post it on our web site somewhere perhaps and post a link here? _

  1   2   3   4   5   >