MQ | 3 Mar 2005 03:23
Picon

RE: Tiny font workaound... maybe?

Adrian,

I'm sorry, I have not had a chance to try your changes, I don't have CVS
access at work through our firewall. I haven't forgotten about it, I just
need to get to it.

BTW, did you or AL have any comments/suggestions on the modified code I sent
out?

-----Original Message-----
From: scigraphica-gtkextra-admin <at> lists.sourceforge.net
[mailto:scigraphica-gtkextra-admin <at> lists.sourceforge.net]On Behalf Of
Adrian E. Feiguin
Sent: Thursday, February 24, 2005 8:55 PM
To: marcodev <at> comcast.net
Cc: Al Hooton; gtkextra
Subject: Re: [gtkextra] Tiny font workaound... maybe?

I understand Al's position, but I want to explore all possible solutions
before giving up. I just committed to CVS a new code for gtkplotgdk.
Very simple idea, instead of a stand-alone object, I make it deppend on
a widget parent that will provide the pango context. I'm guessing that
if fonts appear fine in the gtkwidgets, they'll do as well on the canvas
with the new approach. Can you please verify this? Thanks a lot!

<ADRIAN>

marcodev <at> comcast.net wrote:

>Al,
(Continue reading)

Shamik Chaudhuri | 11 Mar 2005 19:42
Picon

select_item marker problem

Dear friends
                  I am using gtkextra to build a GUI. I have a dataset
and plot it using gtkplot. Now I want to select a data in the plot.
For that I used the signal

'select_item'

gtk_signal_connect(GTK_OBJECT(canvas), "select_item",  (GtkSignalFunc)
select_item, NULL);

now in this I don't want the marker in the plot. Please tell me how to stop it. 

Actually I use other gtkplot commands in the 'select_item' function, and use

gtk_plot_canvas_paint(GTK_PLOT_CANVAS(canvas));
gtk_plot_canvas_refresh(GTK_PLOT_CANVAS(canvas));

at the end.

Because of this the last point marker is also visible. That I don't want

Please suggest something

thanks is advance
Shamik

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
(Continue reading)

John Gotts | 19 Mar 2005 08:15

Quick GtkSheet question

I'm trying to understand a behavior of the sheet widget.

1) Start testgtksheet
2) Widen column B so that there is plenty of whitespace
3) Click on B to highlight the entire column
4) Click on the center text button
5) Click on various cells in that column

The text will be force left justified until you change it in some way, e.g.
by adding a character or by pressing Backspace.  It looks like the activate
cell callback is undoing the change cell callback.

Is this the intended functionality or a bug?

John

--

-- 
John GOTTS <jgotts <at> linuxsavvy.com>  http://linuxsavvy.com/staff/jgotts

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
John Gotts | 19 Mar 2005 09:23

gtk_sheet_show_active_cell() performance enhancement

We have been annoyed for some time by a bug where if you change any color or
text value in any cell, the selection in the active cell disappears.  For
example, if you are currently working on cell (0,0) and some part of its text
is highlighted and the background color for cell (4,4) changes to green and
then you enter new text intending to replace the highlighted text, you will
get unexpected results.  Adrian helped me pinpoint the
gtk_sheet_show_active_cell() function.  At first I rewrote the function to save
the old selection but then I realized that gtk_entry_set_text() and
gtk_item_entry_set_text() are completely redundant if the old text didn't
change.  As an added bonus, there is no flashing anymore and a better
interactive response if there are a lot of sheet changes going on.

If anyone can come up with a situation where my change breaks something, let me
know.

A more elegant fix would be to make even more code in
gtk_sheet_show_active_cell() conditional and the best fix would be to invoke
gtk_sheet_show_active_cell() only when necessary.

John

--- gtk+extra-0.99.16/gtkextra/gtksheet.c.orig	2005-03-19 02:11:07.000000000 -0500
+++ gtk+extra-0.99.16/gtkextra/gtksheet.c	2005-03-19 02:50:17.000000000 -0500
 <at>  <at>  -3687,6 +3687,7  <at>  <at> 
  GtkEntry *sheet_entry;
  GtkSheetCellAttr attributes;
  gchar *text = NULL;
+ gchar *old_text;
  GtkJustification justification;
  gint row, col;
(Continue reading)

Adrian E. Feiguin | 26 Mar 2005 00:03
Picon
Favicon

Re: Quick GtkSheet question

Sorry fo rthe late reply, but I was out of town. I checked what you say, 
and that's not the behavior I see. Everything behaves just fine. Are you 
using the cvs version? gtkextra-1 or 2? Saludos,
<ADRIAN>

John Gotts wrote:

>I'm trying to understand a behavior of the sheet widget.
>
>1) Start testgtksheet
>2) Widen column B so that there is plenty of whitespace
>3) Click on B to highlight the entire column
>4) Click on the center text button
>5) Click on various cells in that column
>
>The text will be force left justified until you change it in some way, e.g.
>by adding a character or by pressing Backspace.  It looks like the activate
>cell callback is undoing the change cell callback.
>
>Is this the intended functionality or a bug?
>
>John
>
>  
>

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
(Continue reading)

Adrian E. Feiguin | 26 Mar 2005 00:06
Picon
Favicon

Re: gtk_sheet_show_active_cell() performance enhancement

Hi John.

It looks like you are not introducing any bugs, and you are improving 
some performance. I'll add your patch to the code. I appreciate it. 
Thanks a lot for the contribution!

Saludos,
<ADRIAN>

John Gotts wrote:

>We have been annoyed for some time by a bug where if you change any color or
>text value in any cell, the selection in the active cell disappears.  For
>example, if you are currently working on cell (0,0) and some part of its text
>is highlighted and the background color for cell (4,4) changes to green and
>then you enter new text intending to replace the highlighted text, you will
>get unexpected results.  Adrian helped me pinpoint the
>gtk_sheet_show_active_cell() function.  At first I rewrote the function to save
>the old selection but then I realized that gtk_entry_set_text() and
>gtk_item_entry_set_text() are completely redundant if the old text didn't
>change.  As an added bonus, there is no flashing anymore and a better
>interactive response if there are a lot of sheet changes going on.
>
>If anyone can come up with a situation where my change breaks something, let me
>know.
>
>A more elegant fix would be to make even more code in
>gtk_sheet_show_active_cell() conditional and the best fix would be to invoke
>gtk_sheet_show_active_cell() only when necessary.
>
(Continue reading)


Gmane