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

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 controloq key event to quit the application. I now I can connect to the top

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,

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 ),

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

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

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 the

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

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

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

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: ¿ 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

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...

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: 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

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 released

Re: switch printer tray during printing

2013-03-11 Thread Michael Cronenworth
On 03/11/2013 03:46 PM, Adam Tauno Williams wrote: I'm not sure this is even possible. Tray select, duplex, etc... are often encoded in either the PCL preamble of a print job or in a PJL envelope [common for Postscript]. They really are attributes of the *job*. I'd guess that Gtk/GNOME

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 Tray 1 (default). Old message

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. ___

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 parsing

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). Thanks, Michael

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

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

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
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

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

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 report

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

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 to

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] != NULL )

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. ___

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

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

list of printers

2012-06-25 Thread Michael Cronenworth
I need to be able to set a printer as a default for the GTK app - not the system default printer - so the user can have things print without having to see the print dialog every time. One way I thought about doing this is to call gtk_print_operation_run() and let the user select the printer to use

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.

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

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:

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 clicking

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

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

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 the

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

window icon resolution

2012-02-08 Thread Michael Cronenworth
When I call gdk_pixbuf_new_from_file() to set a window icon, the resulting image in the Gnome Shell ALT+TAB switcher is fuzzy and clearly low-resolution. The window icon is a 128x128 pixel 24-bit PNG file. When I have the file displayed in another viewer (eog) and ALT+TAB, the Gnome Shell

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

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: Standardizing file open etc

2012-01-23 Thread Michael Cronenworth
Mixbus JohnE wrote: Our 'C' program uses 'open()' and the like for dealing with disk files. This seems to work okay on Linux but not so well on Windows if there are (say) Greek or Russian characters in the file path. I'm not a Linux programmer so I assume that 'open()' on Linux must be

Re: Runtime environment for GTK+ application

2012-01-12 Thread Michael Cronenworth
Manuel Ferrero wrote: First: I can't find a precoocked package or at least a best practice document on which files are needed to distribute with my application, can someone point me on the right direction, please? You can either take Dov's approach and package the GTK DLLs in your installer,

Re: How to extend a widget?

2011-12-16 Thread Michael Cronenworth
jacky wrote: What I was looking into would be more taking an existing widget, and modifying it a little, as in changing its behavior on some aspect, or adding a feature, something like that. My question is: what would be the best/standard/recommanded way to do such a thing? Widgets are not

Re: How to extend a widget?

2011-12-16 Thread Michael Cronenworth
Michael Cronenworth wrote: 2. Create a shell widget Rereading your post I think you called this composite widget. I'm not sure why you are opposed to this idea. I've created a composite widget myself and it has worked great for me. ___ gtk-app

Re: How to extend a widget?

2011-12-16 Thread Michael Cronenworth
jjacky wrote: Anyways, I don't have a problem with creating a new (shell/composite) widget using another one inside of it, it's actually exactly what I did in my example: created a widget JjkCalendar which contains a GtkCalendar. Your composite widget project is similar to mine. I created a

Re: GTK 3 support status

2011-12-03 Thread Michael Cronenworth
On 12/03/2011 08:41 PM, John Lindgren wrote: I am wondering what the status of GTK 3 is at this time with regard to bugs reported by application developers. I reported a rather serious bug (https://bugzilla.gnome.org/show_bug.cgi?id=662043) a month and a half ago, and there is still no

Re: gdk/gtk+ win32 thread question, please help to explain

2011-11-22 Thread Michael Cronenworth
On 11/22/2011 10:13 PM, KC wrote: So the Unfortunately ... statement only apply to GDK on WIN32 ? It's safe to call GTK+ APIs (if protected by gdk_threads_enter/leave) from multi-threads even on WIN32 backend ? Is this correct ? No. GTK2 (I can't say about GTK3, but I bet it is the same) most

GTK mailing list

2011-11-14 Thread Michael Cronenworth
It seems the amount of traffic on this list has dropped significantly over the past few years. Is there a better mailing list or web forum to collaborate with others about GTK application development? Thanks, Michael ___ gtk-app-devel-list mailing

Re: GTK3 and MS-Windows theme

2011-11-14 Thread Michael Cronenworth
Michael Cronenworth wrote: Does GTK3 contain the win32 work that was just released with 2.24.8? It looks like the answer is not yet as I see the win32 work is on the master branch. I'll wait for 3.4 (or if its ported to 3.2) before trying GTK3 again

GTK3 and MS-Windows theme

2011-11-11 Thread Michael Cronenworth
Does GTK3 contain the win32 work that was just released with 2.24.8? My GTK3 app doesn't display using the MS-Windows theme, even when I specify it in the etc/gtk-3.0/settings.ini file. Under Windows XP or Windows 7 it uses an ugly gray theme with hard square buttons. Thanks, Michael

Gtk3 and resizing GtkTreeView columns

2011-11-10 Thread Michael Cronenworth
I ported an app from GTK2 to GTK3. Aside from lots of function renaming and layout adjusting due to the flipping of the expand flag... I have a problem with columns in GtkTreeView widgets. In GTK2, resizing a column with the mouse past the width of the visible tree wouldn't cause the whole

How-to override printer settings

2011-08-16 Thread Michael Cronenworth
I'm trying to send a print job to tray #2 on a laser printer. It has two, real trays. I've tried two ways of sending the print job to the second tray but each time the printer uses the first tray. I understand that each printer may have a different source string, but I will always use a

Gtk 3.0 API and display issues

2011-07-18 Thread Michael Cronenworth
I tried to convert a GTK 2.0 app to GTK 3.0 and ran into a few things: 1. It was pretty nasty of the GTK/Gnome folks to, at the very last minute, deprecate and change gtk_combo_box_new_text() to GtkComboBoxText. 2. The GTK 3.0 API references gtk_combo_box_text_remove_text() but the compiler

Re: [Win32] Hidden window cannot be shown more than once

2011-06-17 Thread Michael Cronenworth
Michael Cronenworth on 06/17/2011 11:46 AM wrote: Is this a possible bug? or I'm doing something wrong? And just as I hit send I catch it. My callbacks were of return type void. Changing them to gboolean and returning TRUE makes the window appear upon the second call. It seems in Win32

[Win32] Hidden window cannot be shown more than once

2011-06-17 Thread Michael Cronenworth
Hello, I have a window that I create in a hidden state. When it is accessed in a menu I call gtk_window_present( window ); and the window is visible. I have a callback attached to the destroy and delete-event signals and I call gtk_widget_hide( window ) in them. When a user attempts to

Re: g_remove

2011-02-17 Thread Michael Cronenworth
Craig Bakalian wrote: Theglib/gstdio.h did the trick. But it is odd behavior. It is not odd. Read David's e-mail for a full explanation. If it is still not clear, you should read the gcc man pages for warning options. ___ gtk-app-devel-list

Re: Memory leaks

2011-02-09 Thread Michael Cronenworth
James Morris wrote: How does one gain this mysterious tool for Linux? It's called Google. There's a web page[1] that details how to setup valgrind to debug gtk/glib apps and even a preliminary suppression file. [1] http://live.gnome.org/Valgrind

Re: newbie question about g_object unref()

2010-11-18 Thread Michael Cronenworth
N James Bridge wrote: It seems that g_object_unref (ptr) doesn't set ptr to NULL when it frees the allocated memory. Have I got something wrong here? Do I have to do it explicitly? The official documentation[1] does not mention anything about setting the pointer to NULL. Did you read

Re: Take part in gkt+ development

2010-09-22 Thread Michael Cronenworth
Alexander Kuleshov wrote: 1) If i write patch, where must i send it? gtk-devel might be a more appropriate list. This list is for developers of GTK applications and not for GTK development. :) 2) What version of gtk+, must i use for development? From git? I am not a gtk developer (I am a

Re: gtk 2.10 key bindings

2010-07-20 Thread Michael Cronenworth
Jaroslav Šmíd on 07/17/2010 01:05 PM wrote: Well, shouldn't you modify ~/.gtkrc-2.0 for GTK 2? .gtkrc should be for GTK 1. [I just noticed this was sent to me off list. Posting to list.] Let me clarify on none of those classes are taking effect. $ cat ~/.gtkrc-2.0 binding gtk-override {

gtk 2.10 key bindings

2010-07-16 Thread Michael Cronenworth
I've got an app on a RHEL 5.5 box that needs the SHIFT+F10 key. However, GTK 2.10 (only version available for RHEL 5) captures the SHIFT+F10 key for the context menu pop-up. I've attempted to bind another command to SHIFT+F10 but it isn't working. cat ~/.gtkrc binding gtk-override { bind

Re: Good view on windows

2010-05-25 Thread Michael Cronenworth
Adam Chrapkowski wrote: I have written a GTK+ based application and I need to redistribute it on Windows (I'm Ubuntu user). Beware if you are wishing to use native 64-bit binaries. The latest GTK+ for Win64 has a few issues (example: Windows theme doesn't work). Be sure to use 2.16.

Re: g_timeout_add_full from different thread not working

2010-02-22 Thread Michael Cronenworth
On 02/22/2010 08:55 PM, S Boucher wrote: Calling g_timeout_add_full() from a different thread (note the pthread_create in the sample bellow) than where gtk_main() is does not work as I expect. The timeout function only gets called if I generate events by moving the mouse. If I don't move the

Re: cool google search entrybox?

2010-02-10 Thread Michael Cronenworth
ferar aschkar wrote: how can I achieve a google search entry like that in firefox with auto-suggest and search history, any examples or links. What about this libsexy library? is there other library like that for creating cool widgets? You will want to use GtkEntryCompletion[1]. [1]

Re: GTK Action Handler

2009-12-31 Thread Michael Cronenworth
dhk wrote: How can I reuse these callbacks? Use user_function( GtkWidget *widget, gpointer data ) instead of explicitly setting a class. Then cast widget as whatever you need, eg.: GTK_BUTTON( widget ) inside of your callback. ___

Re: GTK Action Handler

2009-12-31 Thread Michael Cronenworth
dhk on 12/31/2009 10:33 AM wrote: When the button or expander is clicked with the mouse the callbacks work fine. The problem is from the menu the activate signal has GtkAction as the first parameter of the callback and I don't think that can be cast to a GtkButton or GtkExpander. I want to

Re: Problem with table

2009-12-29 Thread Michael Cronenworth
Eero Tamminen on 12/29/2009 09:17 AM wrote: Is there some trick to doing this? If you want to use fixed lengths you must pack the widgets with the expand flag set to false. Instead of using gtk_container_add use gtk_box_set_child_packing. Example: gtk_box_set_child_packing( GTK_BOX(

Re: Problem with table

2009-12-29 Thread Michael Cronenworth
Eero Tamminen on 12/29/2009 09:17 AM wrote: Instead of s/Instead of/Along with/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Read-only controls

2009-12-09 Thread Michael Cronenworth
Pierre Wieser wrote: Hi, Is there a standard Gtk way of defining controls as read-only at runtime ? In my user interface, I have entries, radio and toggle buttons, and a combo list ; I would set them as read-only when the current item cannot be updated for a reason or another. For now, I set

Re: dotted line separating table columns in GTK 2.18

2009-12-03 Thread Michael Cronenworth
Kristian Rietveld wrote: Not that I know of, but I don't have knowledge of SWT so I cannot think of workaround in that area. I think it is a bit stupid that Ubuntu turned on these grid lines by default, because it is deliberately not a theme setting. We wanted the developers of applications

Re: dotted line separating table columns in GTK 2.18

2009-12-02 Thread Michael Cronenworth
Alex Ignácio da Silva wrote: Isn't there a way to change this behavior via an environment variable or some other mechanism not involving touching the C code? Create a ~/.gtkrc-2.0 and add style no-grid-lines { GtkTreeView::enable-grid-lines = GTK_TREE_VIEW_GRID_LINES_NONE } class

Re: GTK on Windows 2000 pro, sp4

2009-11-30 Thread Michael Cronenworth
On 11/30/2009 10:08 PM, Allin Cottrell wrote: OK, found it. In GLib 2.22.2, gwin32resolver.c, the function free_lookup_by_name calls freeaddrinfo(). The MS header ws2tcpip.h is included indirectly, but this is not going to work on Windows 2000 unless wspiapi.h is also included. Google: msdn

Re: Regarding example code (was Why is ChangeValue reentrant)

2009-08-13 Thread Michael Cronenworth
Michael Torrie on 08/13/2009 10:31 AM wrote: I'm on Fedora 11 with GTK 2.18 I think. $ rpm -q gtk2 gtk2-2.16.5-1.fc11.x86_64 ;) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Regarding example code (was Why is ChangeValue reentrant)

2009-08-13 Thread Michael Cronenworth
Boggess Rod on 08/13/2009 10:39 AM wrote: It's either already be resolved in a newer release, or it exists only as an HPUX implementation issue. I may contact HP, but it doesn't belong on the Gtk bug list. HP provides an update. I'd get off version 2.6 and onto 2.16 ASAP. Tell your

Re: Why is ChangeValue reentrant on a gtk_dialog_run?

2009-08-11 Thread Michael Cronenworth
Boggess Rod on 08/11/2009 08:08 AM wrote: At the risk of beating a dead horse, I've figured out what the problem is, I just don't understand why it's occurring or how to fix it. You're thread jacking. Please stop. ___ gtk-app-devel-list mailing

Re: gtk_file_chooser_hangs

2009-07-09 Thread Michael Cronenworth
arne on 07/09/2009 12:39 AM wrote: I have the problem, that the gtk_file_chooser is not working anymore in my application under win32. I get just a sandglass-curser over it. I get no warning or errormessage on the console. I Setup a new Computer with Mingw and the actual (2009/06/01) All-In

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Michael Cronenworth
Thomas Stover on 07/09/2009 02:37 PM wrote: Is all this in anyway better than a maybe a custom tls/ssl server or something? I know this is slightly off topic, but I know everybody has had to ask themselves this same question. It's simple to write a GnuTLS server/client setup. Why don't you

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Michael Cronenworth
Thomas Stover on 07/09/2009 03:16 PM wrote: I've done an openssl one before, and I'll look at gnutls, but the problems with that route as I see it are mainly: -you have to authenticate connections somehow- portably, and securely. Where as with ssh the OS just provides you with UIDs. I'm not

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Michael Cronenworth
Brian J. Tarricone on 07/09/2009 03:45 PM wrote: I think the sshfs guys might beg to differ with you on that one. As would anyone who uses subversion or git (etc.) over ssh. Or anyone who's tunneled various protocols using ssh's port forwarding. That's off-topic. I'm not ignorant to

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Michael Cronenworth
Thomas Stover on 07/09/2009 03:55 PM wrote: In a perfect world a password, another private key, or what ever wouldn't ever enter the picture. ssh-agent / pageant.exe work so darn well once you get up and running. It's already sad enough that there is no way to merge this world with https

Re: usb plug/unplug notifications

2009-07-09 Thread Michael Cronenworth
On 07/09/2009 09:14 PM, Ardhan Madras wrote: For desktop application (because we are GTK+ forum) there is HAL (Hardware Abstraction Layer) http://www.freedesktop.org/wiki/Software/hal to receive events and informations from devices and the kernel, gnome-volume-manager use HAL to know when a

Re: gtk version for windows 9x

2009-05-29 Thread Michael Cronenworth
Andrea Zagli wrote: which is the latest version of gtk working on windows 9x? and libglade? thanks in advance If your users are still using Windows 9x, do them a favor and install a new Fedora or Ubuntu distro on their machines. Not only are they open to security vulnerabilities, but they

Re: Closing a window.

2009-05-28 Thread Michael Cronenworth
Original Message Subject: Closing a window. From: Sunburned Surveyor sunburned.surve...@gmail.com To: gtk-app-devel-list@gnome.org Date: 05/28/2009 03:27 PM I'm a Java developer that is brand new to GTK and not the world's greatest C programmer. (I'm acutally working with GTK

Re: support gtk+ about zoom in a widget

2009-03-18 Thread Michael Cronenworth
Original Message Subject: support gtk+ about zoom in a widget From: 呉永 w...@shcore.com.cn To: gtk-app-devel-list@gnome.org Date: 03/16/2009 08:23 PM Hi, First, I want to zoom in a window just like when we use IE browser,sometime we can't see the web page clearly, so we will

Re: Date edit widget?

2009-02-12 Thread Michael Cronenworth
Original Message Subject: Date edit widget? From: John Coppens j...@jcoppens.com To: gtk-app-devel-list@gnome.org Date: 02/12/2009 12:13 PM Once upon a time there used to be a gnome_date_edit widget. But with the tendency to eliminate most of gnome ui things, I was looking

Re: win32 warning - g_win32_get_system_data_dirs

2009-02-04 Thread Michael Cronenworth
Original Message Subject: Re: win32 warning - g_win32_get_system_data_dirs From: Tor Lillqvist t...@iki.fi To: Michael Cronenworth m...@cchtml.com CC: gtk-app-devel-list@gnome.org Date: 02/04/2009 01:48 AM File a new bug please. --tml Done. http://bugzilla.gnome.org

win32 warning - g_win32_get_system_data_dirs

2009-02-03 Thread Michael Cronenworth
I have just added Win32 GTK development to my existing Linux development experience, and I am getting a warning when using GTK 2.14.7 and MinGW: C:/msys/1.0/include/glib-2.0/glib/gutils.h: In function `g_win32_get_system_data_dirs': C:/msys/1.0/include/glib-2.0/glib/gutils.h:143: warning: ISO

Re: Window events problems

2008-12-31 Thread Michael Cronenworth
Original Message Subject: Window events problems From: Perriman chuchiperri...@gmail.com To: gtk-app-devel-list@gnome.org Date: 12/30/2008 07:21 PM Can you help me? I found that in order to properly attach to key-press-event or button-press-event in a GTK_WINDOW_POPUP

Re: How can I wrap or scroll text inside a GtkLabel to keep the width?

2008-12-11 Thread Michael Cronenworth
Original Message Subject: How can I wrap or scroll text inside a GtkLabel to keep the width? From: Guenther Meyer [EMAIL PROTECTED] To: gtk-app-devel-list@gnome.org Date: 12/11/2008 02:22 AM hi, I have GtkLabels packed inside some vboxes or tables, the width of the box is

Re: gtk-feed

2008-12-03 Thread Michael Cronenworth
Original Message Subject: gtk-feed From: [EMAIL PROTECTED] To: gtk-app-devel-list@gnome.org Date: 12/03/2008 11:50 AM Hello all, I have been developing a small GTK application for some time now and I have reached version 0.2.0 with it. Basically, it's simple RSS feed reader

Re: Focus problem

2008-11-29 Thread Michael Cronenworth
Perriman wrote: Can you help me?? (I attach the example) Sorry, I don't see the example. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list