Re: How to scroll to a specific line

2018-07-28 Thread John Coppens
On Sat, 28 Jul 2018 07:42:16 -0400 Reuben Rissler wrote: > > Thanks for the suggestion. Believe it or not, I had just arrived at > > that same solution! I first tried to use GLib.timeout_add(), and > > that worked too, if the time was larger than 300 - 400 ms, which is > > on the verge of

Re: Can you specify the No. of chars before SourceView Completion window is displayed?

2018-07-28 Thread John Coppens
On Sat, 28 Jul 2018 03:35:02 -0500 "David C. Rankin" wrote: > All, > > I have implemented word completion with GtkSourceView, but I cannot > find a simple way to prevent the provider and proposals from popping > up until 3 (or more) characters are typed? Is there an easier way to > adjust

Re: How to scroll to a specific line

2018-07-27 Thread John Coppens
On Fri, 27 Jul 2018 07:32:13 -0400 Reuben Rissler wrote: > I have also seen place_cursor_onscreen() work well. Now the thing is, > none of this will work until the Gtk.SourceView has properly been > rendered. This means doing something like: > >         self.source_buffer.set_text("my text")

How to scroll to a specific line

2018-07-27 Thread John Coppens
Hi all... I've been looking at many posts and articles from all over Google, didn't find any solution that works. I'm using Gtk-3, introspection, and Python 3. I've tried many combinations of get_iter_at_line, place_cursor, place_cursor_onscreen, and others. Even tried to more or less calculate

Buttons is Gtk.Dialog can't be separated?

2017-07-27 Thread John Coppens
Hi all. I mad a small function using Gtk.MessageDialog, and add the requisite Ok and Cancel buttons. But, on the result shown the buttons are glued together and expand to occupy the entire width of the dialog. Using style_get_property, I get reply '4', but this spacing is not visible. Also,

Removing overlay scrollbars. export GTK_OVERLAY_SCROLLING=0 fails

2016-04-22 Thread John Coppens
Several programs (such as Geeqie) have the overlay scrollbars enabled, but this causes serious problem when selecting images from the list. The last item of the list is nearly invisible - only 1 pixels shows above the scrollbar, making it difficult to hit with the cursor. Even more so because

Re: Gtk+3 application Internationalization

2016-04-14 Thread John Coppens
On Thu, 14 Apr 2016 09:30:10 +0200 Ondrej Tuma wrote: > Where is benefits of this, sorry, stupid decision. When i use Stock > Items, i have my application base translated to all languages which Gtk > have. How can i do that without Stock Items ? I hope, that I had missed >

Re: argv

2016-04-14 Thread John Coppens
On Sat, 9 Apr 2016 18:39:49 -0700 "Andrew Robinson" wrote: > The problem is that [ebp + 12] and [ebp + 8] point to nonsense. I ran a > debugger and looked at the stack, and there is nothing else on the stack > except for ebp, rtn addr, and these two parameters. I even tried

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-27 Thread John Coppens
On Thu, 19 Nov 2015 09:56:06 +0100 (CET) Lucas Levrel wrote: > Please see by yourself: Lucas, I think those 'tear-offs' are not the same ones as referred to here. The 'main menu bar' of GIMP doesn't have tear-offs anymore. I believe the ones you are showing are from

Re: Misconduct of GTK+/glib Bugtracker Admins

2015-07-15 Thread John Coppens
On Thu, 4 Jun 2015 13:11:55 -0600 IgnorantGuru ignorantg...@openmailbox.org wrote: Greetings. Not sure where is the best place to bring this - input welcome - but this email is an official complaint against the conduct of: I haven't had the pleasure to converse with Andre Klapper, but I can

Re: gtk_widget_queue_draw_area much slower in gtk3 than gtk3

2015-04-01 Thread John Coppens
On Sun, 29 Mar 2015 22:16:32 -0700 dmg d...@uvic.ca wrote: is there any suggestion on why is this happening, specially when it was working properly under gtk2? I have really no idea what is the cause, but it is something I have been thinking about for a while... In one on-line course the text

Re: set classic interface in Gtk.colorbutton

2014-12-12 Thread John Coppens
On Sun, 07 Dec 2014 12:18:21 +0100 rastersoft ras...@rastersoft.com wrote: I'm using a Gtk.ColorButton in an app to set a color, but I need it to have alpha value. The problem is that the new ColorChooser interface is confusing for the users, because, by default, it shows just a list of

Re: Plotting library for GTK+

2014-12-02 Thread John Coppens
On Tue, 2 Dec 2014 19:17:01 +0300 Sergei Naumov vo...@rambler.ru wrote: Can anyone help? GNU plot can be used with 'pipes', so you can send the commands to the program directly. I didn't use it with GNUplot itself, but with a program I made, and that form of 'remote control' is fairly handy.

Re: gtk_window_set_geometry_hints woes

2014-10-25 Thread John Coppens
On Sat, 25 Oct 2014 10:15:21 +0200 (CEST) Lucas Levrel llev...@yahoo.fr wrote: especially video players which would be a perfect candidate for this feature, so I guess it's impossible. Mplayer maintains a fixed aspect ratio. I suspect that the program calculates the WxH to maintain the ratio

Re: set paned handle at the middle

2014-05-16 Thread John Coppens
On Thu, 15 May 2014 23:24:08 +0200 rastersoft ras...@rastersoft.com wrote: Hi all: How can I set the handle from a paned at the middle? I want to do this because I have a paned with two treeviews, and at startup the upper one is shown nearly collapsed.

Re: gtk_entry text cursor

2014-05-11 Thread John Coppens
On Sun, 11 May 2014 18:50:51 + (UTC) Mycroft microft-m...@web.de wrote: How to set the cursor position in a gtk_entry. gtk_editable_set_position(GTK_EDITABLE(w), pos); w is the gtkEntry... pos is the position John

Re: GnomeDateEdit emits no signal on editing entry

2014-03-02 Thread John Coppens
On Sun, 2 Mar 2014 11:25:27 + Emmanuele Bassi eba...@gmail.com wrote: that never happened because nobody used that widget either. :-) Sorry for the name confusion, Emmanuele (though I suspect this is not the first time :) I have been using gtk for many years now, and have the impression

Re: GnomeDateEdit emits no signal on editing entry

2014-03-01 Thread John Coppens
On Mon, 24 Feb 2014 17:33:56 +0001 Bernhard Schuster schuster.bernh...@gmail.com wrote: Can you provide a complete minimal compileable example? Did you open a bugreport? Best Hi Bernhard, Emmanuelle, I did not submit a bug report because I thought I was doing something wrong. I couldn't

GnomeDateEdit emits no signal on editing entry

2014-02-20 Thread John Coppens
Hi guys gals, This may be common knowledge, but I didn't find any reference. When editing the date manually (without the calendar dropdown), no 'change' signal is emitted, even after exiting the widget. I find this rather strange - how do I detect changes? I found an example in a tutorial, but

Re: Printing GtkTextView contents

2013-08-23 Thread John Coppens
On Tue, 20 Aug 2013 15:25:23 -0700 (PDT) Marco Ricci marcoricci2...@yahoo.com wrote: Is there a way by which I can query for the printer and use the results of the query to send the contents of the GtkTextView? Can someone please point me to a small example that does what I describe? I

Re: Fulscreen mode

2013-06-17 Thread John Coppens
On Sun, 16 Jun 2013 09:09:52 +0300 Dov Grobgeld dov.grobg...@gmail.com wrote: You just need to use gtk_widget_hide() on the widget and it and its child widgets will not be shown. Hi Dov, I don't really understand that... I have (more or less) this: ++ + Menu

Fulscreen mode

2013-06-15 Thread John Coppens
Hi... I created a program with three elements in an HBox (gtk2): two treeviews and a GtkGlExt drawing area. I'd like to toggle the drawing area fullscreen/normal. Ie., not show the treeviews (or any other element - such as menus) while in fullscreen mode. Is that possible somehow? Thanks for any

Re: Drag and drop, inter-widget

2012-10-13 Thread John Coppens
On Sat, 13 Oct 2012 14:08:34 +0900 Tristan Van Berkom t...@gnome.org wrote: Hopefully for you... your work is high-level enough and your drag source is in the same application as your drop target... that means you get to set some pointer data and work completely around the drag-and-drop

Drag and drop, inter-widget

2012-10-12 Thread John Coppens
Hello guys, I've got DnD actually working, between a GtkTreeView and a GtkLayout. I'm using it to make a scheduler, where the TreeView has the classes to be scheduled, and the Layout is the actual grid. Though this works, I can't draw the correct size of the class period in the layout till I

Re: gtksourceview 2.11.2 compile problem.

2012-03-12 Thread John Coppens
On Fri, 9 Mar 2012 16:23:43 -0500 (EST) Allin Cottrell cottr...@wfu.edu wrote: It seems gtksourceview 2.11 was transitional. Try 2.10.5, I think that was the last real release for gtk+-2.0. Thanks, Allin! That worked fine. John ___

gtksourceview 2.11.2 compile problem.

2012-03-09 Thread John Coppens
Hello people. I wanted to recompile gtksourceview 2.11.2, because it was linked to an older version of libpng, and this caused some problems. - The original version (actually installed) was compiled before I installed gtk3 - Now I have a compile (not configure) error. - Checking, it seems the

Re: need help in looping many times...

2012-01-24 Thread John Coppens
On Mon, 23 Jan 2012 18:17:41 -0800 Gary Kline kl...@thought.org wrote: right now, the user has to click and wait for gvim to spawn before he can type. how can i code this so that the editor pops up over and over *while waiting for the user to type.* if the user typed nothing, the program

GtkPrint questions

2011-03-23 Thread John Coppens
Hi all. Two items, 1) Even if I set the unit to mm (gtk_print_operation_set_unit), the page drawing in the GtkPrint dialog appears in inches. How can I change that? 2) If I select print to file in the dialog, I can't change the page size anymore. The page size _is_ coded into the generated

Re: GtkPrint questions

2011-03-23 Thread John Coppens
On Wed, 23 Mar 2011 12:35:14 -0300 John Coppens j...@jcoppens.com wrote: 2) If I select print to file in the dialog, I can't change the page size anymore. The page size _is_ coded into the generated Postscript file (%%PageMedia: Letter), so how do I change that? More specifically

GOption friends

2011-03-21 Thread John Coppens
Hello people, I've been trying to get GOption and friends working - but it seems we're not on friendly terms. 1) I defined a GOptionEntry as: {debug, 'd', 0, G_OPTION_ARG_STRING, dbg, Debug options, opts}, and find that -d e works --debug e --debug=e work correctly -de

Re: GOption friends

2011-03-21 Thread John Coppens
On Mon, 21 Mar 2011 15:42:17 +0100 Colomban Wendling lists@herbesfolles.org wrote: The form (-de), frequently used, fails though it is advertised in the Command line parser description:

Re: GOption friends

2011-03-21 Thread John Coppens
On Mon, 21 Mar 2011 17:29:03 +0100 Colomban Wendling lists@herbesfolles.org wrote: Ok... But if I put d: in getopt's arg list, I do expect an argument, and -de is parsed as -d e. Why doesn't GOptionEntry, with a specified G_OPTION_ARG_STRING do the same? Don't know why, I'm no GLib

Re: Strange GObject warning, crashes GUI

2011-01-15 Thread John Coppens
On Sat, 15 Jan 2011 12:38:03 +0200 Mohammed Sameer msam...@foolab.org wrote: GLib-GObject-WARNING **: gsignal.c:3081: signal name `depressed' is invalid for instance `0x8a0900' messages. I've seen this error only once when I was writing a C++ wrapper for a GObject and the GObject

Strange GObject warning, crashes GUI

2011-01-14 Thread John Coppens
Hello people. While updating an old program, warning messages started to appear each time a ComboBoxEntry dropdown button was pressed: GLib-GObject-WARNING **: gsignal.c:3081: signal name `depressed' is invalid for instance `0x89c8e0' aborting... This seemed innocent enough, so I tried to run

Re: Strange GObject warning, crashes GUI

2011-01-14 Thread John Coppens
On Fri, 14 Jan 2011 13:48:56 -0300 John Coppens j...@jcoppens.com wrote: Now compiling gtk+ 2.22.1... It took a while, because for some reason the tutorial and faq would not be generated. I had to remove them from SUBDIRS in docs/Makefile.am, then run autogen.sh Well, the error remains

Re: Anjuta tutorial.

2011-01-13 Thread John Coppens
On Thu, 13 Jan 2011 17:51:18 +0530 Karthikeyan Krishnamurthi karthick.k5...@gmail.com wrote: Am very new to Anjuta IDE. Can anyone suggest me a good tutorial to start gtk+ programming in c with Anjuta IDE.. I think you are looking for a too specific item. There are quite a few gtk+

Re: embedding flash files into GTK application

2011-01-05 Thread John Coppens
On Wed, 5 Jan 2011 17:12:02 +0530 Guruprasad Bhat guruprasad...@gmail.com wrote: I am trying one gtk application in which i want embed some flash files. ( audio video files) can somebody throw guidelines for this. Anyone tried something this kind of thing. Please suggest me. Hwllo Guruprasad,

Re: embedding flash files into GTK application

2011-01-05 Thread John Coppens
On Wed, 5 Jan 2011 12:54:52 -0300 John Coppens j...@jcoppens.com wrote: Have a look at the Ming library - you can use it in C, C++, PHP and others: Sorry - this library permits creating flash movies in these languages - not reproducing. I used it a time ago and seemed to remember it had

Left gravity problem.

2010-11-09 Thread John Coppens
Hello people. I've made a small text editor, in which I want to insert markup. I used the GtkSourceView widget. If there is a selection, I want to insert tags around the selection, and I'd like to remain the selection as it was. As I understand, this means I have to define right_gravity to the

Re: Invalid utf-8

2010-10-18 Thread John Coppens
On Mon, 18 Oct 2010 11:06:58 +0200 David Nečas y...@physics.muni.cz wrote: Are you sure that g_file_get_contents() returns no error? Yes, I am sure... If I just change the accented letters in the text, the same code works fine. I'll compile your program this afternoon when I return home.

Re: Invalid utf-8

2010-10-18 Thread John Coppens
On Mon, 18 Oct 2010 15:05:07 +0200 David Nečas y...@physics.muni.cz wrote: It works for me with any locale, e.g. with Well, I wanted to do some tests, and returned the accented characters to the file, and, surprise, the error is gone! I positively hate it when this happens. I'll do some more

Invalid utf-8

2010-10-17 Thread John Coppens
Hello all. Trying to load a text into a GtkTextBuffer, I bumped onto the well-known Warning, that the text wasn't valid utf-8. Ok... There were two accented ó's in it, so I edited the file in utf-8 mode, and changed those characters. Still, I get the invalid utf-8 warning! Googling, I found a

Button click regression?

2010-08-23 Thread John Coppens
Hello people, A while ago, a bug was corrected (about version GTK 2.0 2.18.x) to correct a problem clicking a button. The issue was that the cursor had to leave the button and re-enter it to re-enable clicking (it lost focus). This was at the time a long-standing problem, and was nicely solved

Re: Anyone for CMake?

2010-06-26 Thread John Coppens
On Sat, 26 Jun 2010 10:07:16 +0100 John Emmas john...@tiscali.co.uk wrote: I just wondered if there's ever been any discussion in the *nix community about moving away from Autoconf/Automake in favour of CMake? I guess this topic must have come up several times already, so what were considered

Strange gnome-config problem

2010-05-03 Thread John Coppens
I know, gnome-config is deprecated. This is an older test program, and, if I can avoid it, I'd rather not modify the code too much. I have plenty programs that have similar code which works fine. The program is rather simple: I have a line (the first one actually), that does: var =

Re: Resizing

2009-10-07 Thread John Coppens
On Wed, 7 Oct 2009 10:23:00 +0100 jcup...@gmail.com wrote: You need to put stuff inside something which can get larger. I'd put a scrolledwindow inside the vpane, then the frame and the table inside that. This will mean if the table gets bigger than the vpane, it'll get scrollbars. Thanks,

Resizing

2009-10-06 Thread John Coppens
Hello all, Though I've read a load of pages, I can't seem to solve the following problem: - I have a (top-level) window, with a vbox, then a vpanel, a frame, an 'alignment' and a table (listed in the order of nesting). When I change something in the table, which makes it wider, the table gets

Error in gthread.h?

2009-09-30 Thread John Coppens
Hello people. After a month of switching to 64 bits, I'm still recompiling old software. Most of this goes really very smoothly, but today I hit a snag for which I can't seem to find a solution. I get this error during compilation of my program: /usr/include/glib-2.0/glib/gthread.h: In function

Re: Error in gthread.h?

2009-09-30 Thread John Coppens
On Wed, 30 Sep 2009 16:12:50 -0700 Brian J. Tarricone br...@tarricone.org wrote: if (G_LIKELY ((gpointer) g_atomic_pointer_get (value_location) != NULL)) return FALSE; else return g_once_init_enter_impl (value_location); It's just a warning. In this case, it's harmless. Might

Re: Error in gthread.h?

2009-09-30 Thread John Coppens
On Wed, 30 Sep 2009 16:38:10 -0700 Brian J. Tarricone bj...@cornell.edu wrote: That's odd. Are you sure you don't have mixed versions of glib installed somehow? I was convinced that I hadn't, because I installed both from Slackware 13.0 (32 and 64bit). But now I remember compiling Inkscape

Re: Error in gthread.h?

2009-09-30 Thread John Coppens
On Wed, 30 Sep 2009 17:11:19 -0700 Brian J. Tarricone bj...@cornell.edu wrote: So, I'm supposing the install of the compat libraries overwrote the includes of the 64 bit version. If I re-install the (newer) 64 bit version of glib, will the 32 bit version remain functional, or do I

Re: usb plug/unplug notifications

2009-07-09 Thread John Coppens
On Thu, 9 Jul 2009 17:38:24 -0500 Garth's KidStuff garthskidst...@gmail.com wrote: I'd like to know how to intercept usb events. Right now, I'm polling for changes, but that isn't the right way to handle device discovery. Is there a way to get a notification when something happens in the

Re: Popup window for alert

2009-03-18 Thread John Coppens
On Wed, 18 Mar 2009 16:55:35 -0600 Jeffrey Barish jeff_bar...@earthlink.net wrote: I would like a popup window with a black line on its border in which I can put a label to alert the user to a failure condition. A Dialog doesn't work because the appearance and disappearance of the window is

Generic debugging question.

2009-03-03 Thread John Coppens
This could be somewhat off topic... On the other hand it seems to happen in the idle loop of GTK. I have this app running, and it generates this SegFault: Program received signal SIGSEGV, Segmentation fault. 0x0003 in ?? () (gdb) bt #0 0x0003 in ?? () #1 0x0002 in ?? () #2

GtkCalendar

2009-03-01 Thread John Coppens
Hello people. I wonder how to solve this elegantly: If I first set the day of the GtkCalendar, I sometimes hit an error depending on the number of weeks in the following month. If I set the month first, I have the same problem, depenging on the day selected previously. In both cases, the

Bug in GtkFrame?

2009-02-27 Thread John Coppens
Hello people. When a frame is set non-sensitive, a bar appears through (in reality, behind) its label. I thought I was imagining it, but enlarging with xMag, _did_ make it very clear! Am I doing something wrong here, or should I really submit this as a bug? John PD: Attached a screenshot of the

Re: GTK warning

2009-02-22 Thread John Coppens
On Sat, 21 Feb 2009 08:16:44 -0700 Jeffrey Barish jeff_bar...@earthlink.net wrote: I hate the warning messages that GTK provides because they rarely help me find the problem. What does this one mean? /myprogram.py:118: Warning: g_object_unref: assertion `object-ref_count 0' failed

Adding menu items dynamically

2009-02-18 Thread John Coppens
Hello people. I'm still getting my feet wet with Glade3... I defined a menu, which works fine, but now I want to add items to one of the submenus by program, and I'm stuck. I did find several other people with similar problems though (no solutions). Glade3, via gtk-builder-convert, seems to

Re: GTK+ 2.15.4 released

2009-02-18 Thread John Coppens
On Tue, 17 Feb 2009 19:23:00 -0500 Matthias Clasen mcla...@redhat.com wrote: GTK+ 2.15.4 is now available for download at: I believe the change was made a longer time ago, but for some reason, changing from 2.14.7 to 2.15.4, the default invisible character changed from an asterisk to a horrible

Re: Adding menu items dynamically

2009-02-18 Thread John Coppens
On Wed, 18 Feb 2009 12:12:05 -0500 Tristan Van Berkom t...@gnome.org wrote: At the risk of sounding redundant, this will work better without the conversion script and with the Glade tool conversion routine. You mean, marking the project as GtkBuilder and save it as such? I did some tests at

Re: Adding menu items dynamically

2009-02-18 Thread John Coppens
On Wed, 18 Feb 2009 13:28:49 -0500 Tristan Van Berkom t...@gnome.org wrote: That is very strange, your telling me that the asterisk saves in libglade format but not in GtkBuilder format ? Since I sent the message, I did several more tests, and apparently it doesn't get saved anymore - at all.

Re: Strategy for furute programs?

2009-02-12 Thread John Coppens
On Thu, 12 Feb 2009 11:30:42 +0100 Murray Cumming murr...@murrayc.com wrote: On Tue, 2009-02-10 at 18:43 -0200, John Coppens wrote: Long time ago I wrote a program to manage my wife's pharmacy, and this involves (among other things) several windows with many modifiable widgets

Date edit widget?

2009-02-12 Thread John Coppens
Hello people. 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 what to use if some GTK replacement existed instead. I only found GtkCalendar - but I don't want an entire calendar on my forms! Anyone know if

Strategy for furute programs?

2009-02-10 Thread John Coppens
Hello people. Last week, I've been experimenting and learning about many of the newer goodies in GTK, GtkBuilder, GConf and now I'm confused and looking for advice. Long time ago I wrote a program to manage my wife's pharmacy, and this involves (among other things) several windows with many

Re: Strategy for furute programs?

2009-02-10 Thread John Coppens
On Tue, 10 Feb 2009 18:43:19 -0200 John Coppens j...@jcoppens.com wrote: furute programs? future programs - sorry for the typo. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

i18n, intltool problems

2009-02-05 Thread John Coppens
Hello people. Previously developping mainly with glade1 and glade2, glade3 now requires to write the code separately. This made me look into Anjuta and other alternatives. During several tests, I came across the famous your intltool is too old. You need intltool 0.35.0 or newer. I have 0.40.5

Re: i18n, intltool problems

2009-02-05 Thread John Coppens
On Thu, 5 Feb 2009 14:05:04 -0200 John Coppens j...@jcoppens.com wrote: During several tests, I came across the famous your intltool is too old. You need intltool 0.35.0 or newer. I have 0.40.5 installed, as shown by: $ intltool-update --version intltool-update

An 'oldie' question... GtkCList anyone?

2009-01-27 Thread John Coppens
Hello people. In the process of converting an old program from mSQL to MySQL, I found a couple of potential traps and optimized a couple of functions. I now have a problem with adding lines into a GtkCList using gtk_clist_append. The code is like this: char *bff, str[4]; bff =

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread John Coppens
On Tue, 27 Jan 2009 15:53:03 +0100 (CET) Tomas Soltys tomas.sol...@range-software.com wrote: Hi, try to declare str as: char *str[4]; Thanks for the suggestion, but it _was_ defined as a *str[4], of course. I probably would've experienced a lot of SEGFAULTS if not. Sorry for the typo.

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread John Coppens
On Tue, 27 Jan 2009 17:02:32 +0100 Nicola Fontana n...@entidi.it wrote: first of all I warmly suggest you to update your code to GtkTreeView. GtkCList is not maintained since ages: you'll surely meet bigger problem than this and you'll be alone. Yes - I'm planning on doing that. But the

Re: loading pixmaps from the C source

2008-10-22 Thread John Coppens
On Wed, 22 Oct 2008 18:13:41 +0300 Henri Häkkinen [EMAIL PROTECTED] wrote: I am writing a simple GTK+ 2.0 application which uses the GNU build system. The application opens a status icon on the system tray area and the icon is loaded from a image file. By default, the icon gets installed to

Re: Drag'n'drop problems

2008-09-08 Thread John Coppens
Thanks, Jeffrey, but: On Mon, 08 Sep 2008 08:19:42 -0600 Jeffrey Barish [EMAIL PROTECTED] wrote: The first argument only has to match the first argument of the source. This does not seem to be true. If I replace {GTK_TREE_MODEL_ROW, GTK_TARGET_SAME_APP, 0} // This works by, eg.:

Re: Drag'n'drop problems

2008-09-08 Thread John Coppens
On Mon, 08 Sep 2008 11:03:39 -0600 Jeffrey Barish [EMAIL PROTECTED] wrote: So the string _is_ interpreted somewhere (outside of my program, that is). To be specific, the drag seems to work, but drop doesn't - no event is generated in the second case. BTW, it's not just STRING. I tried

Re: Drag'n'drop problems

2008-09-08 Thread John Coppens
On Mon, 8 Sep 2008 22:27:08 +0200 Kristian Rietveld [EMAIL PROTECTED] wrote: This function will actually set up the tree view as a model drag source and destination (via gtk_tree_view_enable_model_drag_{source,dest}) and will specify a target entry using GTK_TREE_MODEL_ROW as a target string.

Re: Drag'n'drop problems

2008-09-07 Thread John Coppens
On Sat, 6 Sep 2008 11:58:00 -0300 John Coppens [EMAIL PROTECTED] wrote: I couldn't find a list of valid format descriptions. Can anyone point me in the right direction? Adding some more info: I found an (incomplete) chunk of code on the net that defines the row data in the GtkTargetEntry array

Drag'n'drop problems

2008-09-06 Thread John Coppens
Hello people. I was playing around with the idea of a specialized editor with a facility to drop macros into the a structure tree, using DnD. This would boil down to DnD between two TreeViews. Preliminary research showed a confusion of information on the net, which I categorized into (at least)

Markup in GtkTreeViewColumns

2008-08-20 Thread John Coppens
Hello people. It may be evident, but I can't seem to find how. I need to put markup in the column title of GtkTreeViewColumns, as the column titles are parameters with sub-indexes. (S11 etc). Is this possible? John ___ gtk-app-devel-list mailing list

Re: Markup in GtkTreeViewColumns

2008-08-20 Thread John Coppens
On Wed, 20 Aug 2008 22:47:02 +0300 Paul Pogonyshev [EMAIL PROTECTED] wrote: John Coppens wrote: It may be evident, but I can't seem to find how. I need to put markup in the column title of GtkTreeViewColumns, as the column titles are parameters with sub-indexes. (S11 etc). Use

Re: What's wrong with the docs?

2008-02-03 Thread John Coppens
On Sun, 03 Feb 2008 18:40:37 +0200 Stefan Kost [EMAIL PROTECTED] wrote: - Are those docs maybe declared unaccessible by the spider engines? (by robots.txt or so) I guess library.gnome.org is just too new and maybe not linked that much yet (I used good to search for sites that link to it

What's wrong with the docs?

2008-01-30 Thread John Coppens
Hello all... There must be something terribly wrong somewhere, when I try to find documentation on operation with GTK+ or GDK elements, I always seem to get _much_ more documentation from the Python/Perl libraries than from the actual C interface. I'm sure others noticed the same trend. So, why

Re: how to insert a menu_item into the middle of a menu list ?

2008-01-27 Thread John Coppens
On Sun, 27 Jan 2008 22:42:47 +0800 Gregory Hosler [EMAIL PROTECTED] wrote: any thoughts or suggestions ? Hi Greg. I suspect you can insert the new element in the GList obtained by gtk_container_get_children() (or at least manage the order of the list after appending the new item) John

Re: how to insert a menu_item into the middle of a menu list ?

2008-01-27 Thread John Coppens
On Sun, 27 Jan 2008 22:42:47 +0800 Gregory Hosler [EMAIL PROTECTED] wrote: any thoughts or suggestions ? Sorry about the previous message, Greg... I was writing from memory, and seems memory didn't work as it should've... The GList you obtain from _get_children is newly allocated so you

Slow access to one directory

2007-07-18 Thread John Coppens
Hi all... I'm experiencing terrible slowdown when accessing one directory. Lastly it's the root directory, but I've know it to be other directories. I first thought it was a firefox problem, but now I notice it's also present in GIMP. During the delay (which takes up to 20-30 seconds or so) one

Window resizing

2007-06-01 Thread John Coppens
Hi all... I need a hand. In a program I have a small toolbar separate from the main window. The toolbar is a GtkToolbar inside a GtkWindow. The problem is that I cannot seem to make the GtkWindow resize to adjust to the toolbar size (I want to switch vertical/horizontal). Also, I need to adjust

Re: Window resizing

2007-06-01 Thread John Coppens
On Fri, 1 Jun 2007 22:13:47 -0300 John Coppens [EMAIL PROTECTED] wrote: Hi all... I need a hand. In a program I have a small toolbar separate from the main window. The toolbar is a GtkToolbar inside a GtkWindow. The problem is that I cannot seem to make the GtkWindow resize to adjust

Re: serial ports

2007-05-14 Thread John Coppens
On Mon, 14 May 2007 18:49:02 - Pavel A. da Mek [EMAIL PROTECTED] wrote: When I want to use serial ports, shall I write separate code for Windows and for Linux, or is there some library function which would allow to do it in the platform independent way? If I'm not mistaken (I don't use

Re: GDK_2BUTTON_PRESS and GDK_BUTTON_PRESS

2006-12-30 Thread John Coppens
On Thu, 28 Dec 2006 18:33:24 +0100 Enrico Sardi [EMAIL PROTECTED] wrote: How can I distinguish between |||GDK_BUTTON_PRESS and a | cid:part1.05080504.08050205@tiscali.it|GDK_2BUTTON_PRESS event?| cid:part2.02010409.02050407@tiscali.it Enrico, This page explains how to detect double and

Re: How To Draw Bitmaps From FreeType?

2006-12-23 Thread John Coppens
On Sat, 23 Dec 2006 10:30:59 -1000 Eric Mader [EMAIL PROTECTED] wrote: I'm also thinking about creating a GdkPixbuf with a depth of 24 and filling it by hand from the FreeType bitmap by copying the 8 bit pixel value into all three components of the pixbuf. Will that work? Eric, Did you

Re: Color selection

2006-12-21 Thread John Coppens
On Thu, 21 Dec 2006 11:24:19 +0300 Alexander S.Kresin [EMAIL PROTECTED] wrote: How can I convert them to the 0..255 for to be able to get Windows compatible long value by color.red + color.green*255 + color.blue*65535 ? Divide them by 256? John ___

Re: Finding Version of GTK installed

2006-12-06 Thread John Coppens
On Tue, 5 Dec 2006 09:42:02 -0500 David Vandepol [EMAIL PROTECTED] wrote: It appears that GTK isn't installed. Just to be clear, GTK is installed with Red Hat OS correct? Check if there is a -dev package for gtk+ (gtk+-dev... or something). I believe redhat does install the basic gtk

Re: Finding Version of GTK installed

2006-12-05 Thread John Coppens
On Tue, 5 Dec 2006 09:42:02 -0500 David Vandepol [EMAIL PROTECTED] wrote: I'm still having problems. When I run java tool and view all of the LaF's GTK is displayed, however gtk isn't available in the pkg-config Hi David. I'm not sure about this, but I suspect that if any other

Re: Finding Version of GTK installed

2006-12-04 Thread John Coppens
On Mon, 4 Dec 2006 13:09:46 -0500 David Vandepol [EMAIL PROTECTED] wrote: a gtk-config file is not created in /usr/lib or anyplace for that matter. I was wondering if anyone knew how to determine the version of GTK installed, or any file(s) that would contain this information. gtk-config

Strange slowdown in one directory

2006-10-30 Thread John Coppens
Hi all.. Since a couple of weeks, I have a very strange thing with one partition of my disk mounted as '/data'. GTK+ based programs seem to have problems accessing this directory after some time. When the app is recently started, access is fast. After a couple of hours, it can take up over 30

Re: Pango advice?

2006-08-30 Thread John Coppens
On Wed, 30 Aug 2006 18:07:01 +1000 kadil [EMAIL PROTECTED] wrote: Hi, I want to use pango in an app to render text to a drawingarea. I have seen examples that show how to render text in a textview, but not to a drawingarea. Can you specify the width of the layout to be rendered, into a

Re: frequently updated pixbuf images disapear after a while

2006-08-26 Thread John Coppens
On Sat, 26 Aug 2006 15:50:07 +0200 rupert [EMAIL PROTECTED] wrote: I assume its some unfread memory, but i havent really been able to track this errors. Not much of an expert either, here goes a suggestion: I suspect you call that function each second. I don't see where you release the pixbuf

Re: Signal Handling problems with own data

2006-08-18 Thread John Coppens
On Fri, 18 Aug 2006 07:03:41 -0700 (PDT) NicolasA [EMAIL PROTECTED] wrote: In my case I want to pass two widgets(the two text entries)so that when my function is called, to access the two text entries, grab their contents and validate the username and password with the server. How can I pass

Re: Bug in GLib, libglade, libc??

2006-08-14 Thread John Coppens
On Tue, 15 Aug 2006 00:57:06 -0300 Fabricio Rocha [EMAIL PROTECTED] wrote: I have a suspicion from my lack of practice in C: a module of my program uses a structured type which must contain, as its last member, a dynamic list of strings, i.e., pointers to gchars (**list). Sometimes I

Memory problem in Pango?

2006-07-25 Thread John Coppens
Hi all. I was debugging a program of mine, and when I ran valgrind, I ran across the following (which sounds quite important): ==30953== Address 0x5F73D25 is 141 bytes inside a block of size 1,280 free'd ==30953==at 0x401A2F8: free (m_replacemalloc/vg_replace_malloc.c:233) ==30953==by

Re: Question about gtk_label_set_justify()

2006-07-25 Thread John Coppens
On Tue, 25 Jul 2006 14:46:19 +0800 chao yeaj [EMAIL PROTECTED] wrote: Hello everyone You knowe ,there is a function called gtk_label_set_justify(),which used to modify the label's text'sjustify mode my code as follow GtkWidget *label = NULL; gtk_label_new( I am

Re: showing a logfile in a Textview(like tail -f)

2006-07-20 Thread John Coppens
On Thu, 20 Jul 2006 11:55:47 +0200 rupert [EMAIL PROTECTED] wrote: Currently i update a buffer with gtk_text_buffer_insert_at_cursor(data, line, -1);in a timeout, the problem here is that the new text gets copied at the and of the old text, i also tried gtk_text_buffer_insert, but that

  1   2   >