GtkTreeView : Drag and drop
Hello, ( I speak french, sorry for my english ) in my GtkTreeView, I activated drag and drop with : gtk_tree_view_set_reorderable(GTK_TREE_VIEW(pTreeView), TRUE); The DnD works fine, but I would like control if the row "may" moved. How can I do it ? Thank you. ___ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: changing the bg of a widget
Luka Napotnik wrote: Hello. I'm trying to change the background of a vbox but it doesn't change. I call gtk_widget_modify_bg(window_main->box_main, GTK_STATE_NORMAL, &bgColor) where bgColor is set to white. Why does this not work? I have a GtkImage with an image in the vbox and that's all. If I resize the window, the color is still the same. Hi, Add GtkVBox to the GtkEventBox and use gdk_widget_modify_bg() on GtkEventBox. Olexiy ___ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Signal when a drag and drop on a GtkTreeView is finished
I asked it on irc, and here is a solution : g_signal_connect_swapped(G_OBJECT(pMyApp->pTreeStore), "row_inserted", G_CALLBACK(entryMoved), pMyApp); Thank you. ___ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Signal when a drag and drop on a GtkTreeView is finished
Good evening everybody, ( I speak french, sorry for my english ) when a entry's changed, I changed a label. But, when a drag and drop on a GtkTreeView is finished, how to know it ? When I'll receive this signal, I would like change a label too. So, I need this signal. Thank you. ___ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
how to move a specified line on textview ?
how to move a specified line on textview ? -- - Time is pop-corn. ___ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: changing the bg of a widget
On Sun, 21 Aug 2005 14:34:53 +0200 Luka Napotnik <[EMAIL PROTECTED]> wrote: > Hello. I'm trying to change the background of a vbox but it doesn't > change. I call gtk_widget_modify_bg(window_main->box_main, > GTK_STATE_NORMAL, &bgColor) where bgColor is set to white. Why does this > not work? I have a GtkImage with an image in the vbox and that's all. If > I resize the window, the color is still the same. As I understand it, vbox is a container, which doesn't have a background color of its own, as it expects to be filled with widgets. So maybe you shoud change the bg color of the image or put the image on something you can fill. John ___ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
glade and combo boxes
hi all, when i create a combo box in glade 2.6.8, the c code generated uses gtk_combo_box_new_text() instead of gtk_combo_box_new(), which is what i'd like to have. is there some way to make glade use the latter function? i didn't give any strings to put into the box in glade. cheers, gyözö p.s.: please no solutions of the type 'use libglade' ;-) -- The last person that quit or was fired will be held responsible for everything that goes wrong -- until the next person quits or is fired. ___ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Re: Re: about button and tooltip in GTK_WINDOW_POPUP
Hi, > sorry I misunderstood your needs but again I don't understand if for > "toolbar" you mean the taskbar, if so otherwise my English is not good > enough :) > > http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-set-skip-taskbar-hint > Sorry for my poor english and not reading the document carefully enough. It works now. Thanks a lot! -- USTC Alumni Email System ___ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Ant: Re: How to convert file names from
Hallo, thanks for your hint. But I tried to find a solution for the problem. The string with the german charkter will be changed after gtk_file_chooser_get_filename(...)! AT the place of a german charakter another charakter (value = -61) is appended. After this charakter the value for the german special charakter follows but it is decreased with 64! I wrote a little function to solve the problem. It seems to be ok now (for german special charakters)! In my opinion it is a bug from gtk_file_chooser_get_filename(...). So where I have to report it (I never found a bug before ...). Perhaps someone wants to use this information or wants to test it. You have to use FilePath = gtk_file_chooser_get_filename(...); Here is the function: gboolean repair_gtk_file_name (gchar *FilePath) { int i, j = 0; if (FilePath != NULL && strlen (FilePath) > 0) { for (i = 0; i < strlen (FilePath); i++) { if (FilePath[i] == -61) { for (j = i; j < strlen (FilePath); j++) { FilePath[j] = FilePath[j+1]; } FilePath[i] += 64; } } return TRUE; } else { return FALSE; } } --- Hubert Soko³owski <[EMAIL PROTECTED]> schrieb: > On Wed, 20 Jul 2005 13:22:52 +0200 (CEST) > Christian Schneider > <[EMAIL PROTECTED]> wrote: > > > /* Open file with iso_string */ > > file = fopen (iso_string, "rb"); > > > > file == Null if a german special charakter is > > involved! > it is better to use GIOChannel for operations on > files. I have > experienced strange problems on win32 when using > fopen and the family. > ___ > gtk-app-devel-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de ___ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
changing the bg of a widget
Hello. I'm trying to change the background of a vbox but it doesn't change. I call gtk_widget_modify_bg(window_main->box_main, GTK_STATE_NORMAL, &bgColor) where bgColor is set to white. Why does this not work? I have a GtkImage with an image in the vbox and that's all. If I resize the window, the color is still the same. Greets, Luka ___ gtk-app-devel-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Re: about button and tooltip in GTK_WINDOW_POPUP
2005/8/21, Cai Qiang <[EMAIL PROTECTED]>: > Hi, > But doesn't gtk-window-set-decorated only create a > borderless window? I need the window not shown in > the toolbar. sorry I misunderstood your needs but again I don't understand if for "toolbar" you mean the taskbar, if so otherwise my English is not good enough :) http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-set-skip-taskbar-hint -- Gian Mario Tagliaretti PyGTK GUI programming http://www.parafernalia.org/pygtk/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Re: about button and tooltip in GTK_WINDOW_POPUP
Hi, > > Do I miss any setting procedure for POPUP type gtk_window? Or is there any method to let TOPLEVEL type gtk_window not shown in toolbar? > > maybe you want to use: > http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-set-decorated > But doesn't gtk-window-set-decorated only create a borderless window? I need the window not shown in the toolbar. Best Regards -- USTC Alumni Email System ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: drawing text in gtkdrawable...
On Sat, Aug 20, 2005 at 09:20:24PM +0200, Marek Florianczyk wrote: > > works fine, but how do I draw text that I can rotate 360 degrees (eg. draw > horizontally from up to down, or draw upside down) > Is that matter of PangoLayout and I can change it when I create layout, or > can > I change it somehow with gtk_layout_set.something ? See demos/gtk-demo/rotated_text.c in Gtk+ source code. Yeti -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: about button and tooltip in GTK_WINDOW_POPUP
2005/8/21, Cai Qiang <[EMAIL PROTECTED]>: > Do I miss any setting procedure for POPUP type gtk_window? Or is there any > method to let TOPLEVEL type gtk_window not shown in toolbar? maybe you want to use: http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-set-decorated cheers -- Gian Mario Tagliaretti PyGTK GUI programming http://www.parafernalia.org/pygtk/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list