Re: pixbuf outermost pixels are white

2013-08-23 Thread Jan Kratochvil
iro::FILTER_NEAREST); http://www.jankratochvil.net/t/2.png Regards, Jan Kratochvil /* g++ -o 1 1.C -Wall -Werror -std=gnu++11 -g $(pkg-config --cflags --libs gtkmm-3.0);./1 */ #include #include #include #include #include #include using namespace std; class Area:public Gtk::DrawingArea { bool on_d

pixbuf outermost pixels are white

2013-08-21 Thread Jan Kratochvil
/pixbuf.png Fedora 19 x86_64: gtk3-3.8.2-2.fc19.x86_64 gtkmm30-3.8.1-1.fc19.x86_64 Sorry for gtkmm, I can no longer write non-C++ GTK code. But I think the problem is not specific to the gtkmm C++ wrapping. Thanks for an advice, Jan Kratochvil /* g++ -o 1 1.C -Wall -Werror -std=gnu++11 -g

RE: qt vs gtk

2009-01-14 Thread Andersen, Jan
important that my tools don't work against me; GNOME did, KDE doesn't. -Original Message- From: gtk-app-devel-list-boun...@gnome.org on behalf of Thomas Stover Sent: Wed 14-Jan-09 16:10 To: gtk-app-devel-list@gnome.org Subject: qt vs gtk With the recent news that Nokia will be releasing Q

GTK cell renderer for button?

2007-04-19 Thread Jan-Oliver Wagner
t and looked at libgnome-db 2.99. There are some cell renderers, but AFAIKS none for a button. Any other hints where such a cell renderer might already have been implemented? All the best Jan ___ gtk-app-devel-list mailing list gtk-app-devel

Re: SIGINT with gtk_main

2007-03-21 Thread Michiel Jan Laurens de Hoon
[EMAIL PROTECTED] wrote: > static void signal_handler(int sig) > { > switch (sig) { > case SIGINT: > puts("SIGINT signal catched"); > break; > case SIGTERM: > puts("SIGTERM signal catched"); >

SIGINT with gtk_main

2007-03-21 Thread Michiel Jan Laurens de Hoon
For my application, I need to run gtk_main but I want to quit gtk_main when either input is available on stdin or the user presses Ctrl-C. The former is easy (using g_io_add_watch), but I am not sure what the best approach is to handle Ctrl-C. Right now I am using g_timeout_add to check every 1

Re: Tooltips for GtkTreeView?

2007-02-28 Thread Jan-Oliver Wagner
Hello Ed, Am Donnerstag 22 Februar 2007 21:10 schrieb Ed Catmur: > On Thu, 2007-02-22 at 20:50 +0100, Jan-Oliver Wagner wrote: > > does anyone established tooltips for the entries in a GtkTreeView? > > > > I've not found anything ready-to-use in the GTK API nor throu

Tooltips for GtkTreeView?

2007-02-22 Thread Jan-Oliver Wagner
Hello, does anyone established tooltips for the entries in a GtkTreeView? I've not found anything ready-to-use in the GTK API nor through a google search. So, any hint is welcome. Best Jan -- Dr. Jan-Oliver Wagner Intevation GmbH Amtsge

Re: Accompany index of deprecated symbols with GTK+ version?

2006-11-13 Thread Jan-Oliver Wagner
ndeed it does not make sense to implement a general solution. Best Jan -- Jan-Oliver Wagner: www.intevation.de/~jan | GISpatcher: www.gispatcher.de Kolab Konsortium : www.kolab-konsortium.de | Thuban: thuban.intevation.org Intevation GmbH : www.intevation.de | Kolab : www.k

Re: Accompany index of deprecated symbols with GTK+ version?

2006-11-13 Thread Jan-Oliver Wagner
On Monday 13 November 2006 08:20, David Nečas (Yeti) wrote: > On Mon, Nov 13, 2006 at 12:28:29AM +0100, Jan-Oliver Wagner wrote: > > I wonder whether it is feasible to accompany the index of deprecated > > symbols > > [1] with the GTK+ version number describing sin

Accompany index of deprecated symbols with GTK+ version?

2006-11-12 Thread Jan-Oliver Wagner
symbols is the one I am looking for.) All the best Jan [1] http://developer.gnome.org/doc/API/2.0/gtk/ix02.html -- Jan-Oliver Wagner: www.intevation.de/~jan | GISpatcher: www.gispatcher.de Kolab Konsortium : www.kolab-konsortium.de | Thuban: thuban.intevation.org Intevation GmbH

GtkFileSelection vs. GtkFileChooser

2006-11-12 Thread Jan-Oliver Wagner
Hi, the API documentation (section Migrating from GtkFileSelection to GtkFileChooser [1]) says that GtkFileSelection has "numerous problems". What is the rationale that GtkFileSelection is not marked as deprecated then? Best Jan [1] http://developer.gnome.org/doc/API/2

A problem with SCIM: runs, but doesn't work

2006-08-17 Thread jan
This one may seem a bit off-topic, but I hope you will bear with me. The reason I ask here rather than on the gtk-list@gnome.org is that I think people on this are more likely to be able to pinpoint what is going wrong; please let me know if I'm wrong. I have installed the latest version of SCI

Re: Finding widget from its name?

2006-08-16 Thread jan
Hi Tomas, Now that is what I call a seriously good explanation! Thanks a lot. /jan [EMAIL PROTECTED] wrote: > On Wed, Aug 16, 2006 at 06:02:27AM +0100, jan wrote: >>> Progss wrote: >>>> [EMAIL PROTECTED] napisa?(a): >>>>> Is there a function that allo

Re: Finding widget from its name?

2006-08-15 Thread jan
4-February/001790.html > > Regards, > Waldek > Thanks! Now on to the next question: What if I wasn't using Glade? The gtk+ documentation isn't exactly intuitive. /jan ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Finding widget from its name?

2006-08-15 Thread jan
Is there a function that allows one to search for a widget using its name or label? I'm using Glade 2 to design a window (just a basic input form), and each widget has a unique name. Unfortunately Glade doean't save any global pointers to the widgets; I can only assume that there must be another

SCIM

2006-07-12 Thread jan
tem that should handle these things - maybe some of that is broken, or perhaps there is a configuration file somewhere that's not right? Or can it be my X server (version 7.0, I think)? /jan ___ gtk-app-devel-list mailing list gtk-app-devel

Re: silly problems with program directory

2006-06-08 Thread Jan Struyf
e data files are based on the location of the executable. Best, Jan. Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

RE: newbie trap

2006-04-12 Thread Andersen, Jan
termittent errors and crashes when the load got too big. /jan ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

keypress/release event timing issues

2005-09-17 Thread Jan Dusek
rs with the same results.) Why is that? And is there anything I can do to suppress this behavior? Thanks for any help. Jan ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Combobox Focus Challenge!!!

2005-09-01 Thread Jan-Marek Glogowski
Hi Maybe someone should extend the API docs or add a FAQ: gtk_widget_grab_focus( GTK_BIN(combo)->child ); Jan-Marek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: g_signal_emit_by_name

2005-08-18 Thread Jan-Marek Glogowski
_event_callback(...) { return your_old_code(..); } gboolean close_or_continue() { gboolean result = your_old_code(..); if( FALSE == result ) gtk_widget_destroy( window ); return result; } HTH Jan-Marek ___ gtk-app-devel-list mailing list gtk-app-devel

Re: [GtkMenu] Callback problem with popups submenus

2005-08-18 Thread Jan-Marek Glogowski
Hi Emmanuel For me it works as expected. I just added a gtk_main(), a gtk_init(...) and a print()-callback and it works (on Debian Sarge gtk+ 2.6.4) For gtk_menu_popup I used ..., 0, gtk_get_current_event_time()); Maybe something else is wrong in your code? Jan-Marek

Re: Cannot hide dialog until signal handler exits

2005-08-18 Thread Jan-Marek Glogowski
s there a way to hide the dialog immediately to show the progress bar > in the underlying window? IMHO the easiest way is a g_timeout_add(0,..), which does the processing in the main loop. And return FALSE in your GSourceFunc, so the timeout is just run once. HTH Jan-Marek ___

Re: Getting workspace number?

2005-08-18 Thread Jan-Marek Glogowski
E you have to check the Metacity code (or check the gnome pager codebase). And you may check the window manager specification on www.freedesktop.org. HTH Jan-Marek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/m

Getting workspace number?

2005-08-17 Thread Jan Struyf
", nr); } But this does not work because wnck_screen_get_active_workspace returns NULL, i.e., workspace is NULL. Any ideas? Thank you very much in advance. With kind regards, Jan Struyf. ___ gtk-app-devel-list mailing list gtk-app-devel-list@g

Re: GTK_COMBO_BOX_ENTRY activate signal

2005-07-20 Thread Jan-Marek Glogowski
> Now, I'm using the GTK_COMBO_BOX_ENTRY that doesn't have the > "activate" signal, neither let me access the entry inside the combo, > as I used to do with GTK_COMBO. > > Someone know how to do it? GTK_ENTRY( gtk_bin_get_child(

Re: GtkTreeView issues (porting from GtkCList)

2005-06-24 Thread Jan-Marek Glogowski
> Ok ok! However it doesn't work on my situation. What I am trying to do > is something similar a bookmark. Then it has a root folder: Bookmark > (that cotain all the folders and url's); and it has the url's (that > are the 'leafs'). One requirement is I may move the folders and url's. > So I need

Re: 100 Different Colors

2005-06-24 Thread Jan-Marek Glogowski
> Thanks Jan-Marek and everyone else who replied. The > suggestions have been really helpful. I'm making some > progress. But I didn't know I had to deal with > hue/saturation/intensity stuff for this. > > I searched but couldn't find any documentation for > gt

Re: GtkTreeView issues (porting from GtkCList)

2005-06-24 Thread Jan-Marek Glogowski
ode without children: gtk_tree_model_iter_has_child or gtk_tree_model_iter_children HTH Jan-Marek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: 100 Different Colors

2005-06-24 Thread Jan-Marek Glogowski
FYI - I just came up with the this example to illustrate a way to change the colors in a loop - it doesn't represent the solution! Algo is still: r = max, g = 0, b = 0 r = max , g = max, b = 0 r = 0, g = max, b = 0 r = 0, g = max, b = max r = 0, g = 0, b = max r = max, g = 0, b = max back to step

Re: What key is now pressed?

2005-06-21 Thread Jan
The main idea to know that key press or down in whole system, not only if my window have focus. On Mon, Jun 20, 2005 at 02:27:18PM -0400, Liam R. E. Quin wrote: > On Mon, 2005-06-20 at 21:28 +0000, Jan wrote: > > Hello. > > > > Using gdk_display_get_pointer, I can know is ct

Re: 100 Different Colors

2005-06-21 Thread Jan-Marek Glogowski
xel = 0; c.red = G_MAXUINT16; c.blue = (i % 33 / 99) * G_MAXUINT16; c.green = i/99 * G_MAXUINT16; gdk_gc_set_rgb_fg_color( gc, &c ); gdk_draw_rectangle (widget->window, gc, TRUE, i*15, 0, 11, 11); } HTH Jan-Marek ___ gtk-app-dev

What key is now pressed?

2005-06-20 Thread Jan
Hello. Using gdk_display_get_pointer, I can know is ctrl, alt, shift now up or down, and I wonder is there function to check up or down any key? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk

Re: GtkTreeView issues (porting from GtkCList)

2005-06-14 Thread Jan-Marek Glogowski
LL ) ) { gtk_tree_view_set_cursor ( tree_view, path, focus_column, FALSE ); gtk_tree_path_free( path ); } return FALSE; } You also need to write a button press event handler, to toggle the "hover" handling. HTH

Re: get sys date

2005-06-03 Thread Jan-Marek Glogowski
Hi >developing gui with glade, c. i want to know the api or > functionality to how to get system date and time, and how to display it > to the particular widget. Look into the GLib API Docs -> Date and Time Functions. HTH Jan-Marek ___

Re: GLib-GObject-CRITICAL debugging

2005-05-20 Thread Jan-Marek Glogowski
Hi Daniel If I want to catch GLib/GTK+ errors I set a breakpoint to g_log. In gdb: break g_log If you use g_log for a lot of own logging, you should be able to set a breakpoint depending on the logging domain. HTH Jan-Marek ___ gtk-app-devel-list

Subscript in GtkTextView

2005-04-21 Thread Jan
Hi. I would like to show some part of text in GtkTextView like if it in xhtml tag. My code is: gtk_text_buffer_create_tag(buffer, "", "rise-set", TRUE, "rise", -3, NULL); gtk_text_buffer_apply_tag_by_name(buffer, "", ...); this didn't work, but if I change properties of "" tag to, for example

GtkTextView && pango formated text

2005-02-19 Thread Jan
Hello. Can I correctly represent pango formated text in GtkTextView ? And it's possible how this can be done? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: UI_Manager & checkMenuItem

2005-01-25 Thread Jan-Marek Glogowski
Hi > Does anyone know if there is a way to add a checkMenuItem in a menu > using ActionGroup and gtkUiManager? Have a look for GtkToggleActionEntry. Jan-Marek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gno