Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Eric Cashon via gtk-app-devel-list

 
Hi Kian,

A list box is more flexible for allowing different widgets but the performance 
might not be so good if you have a lot of rows. Don't have the numbers to show 
that though.

You can put your individual widgets into a scrolled window if you want.  The 
scroll bars will show if the content runs past the border. This is a little 
test code with some textviews in scrolled windows within the list box. You can 
move across rows and columns with the keyboard arrow keys. Might have to do a 
little programming to get the list box to behave how you want for your program.

Eric

/*  
gcc -Wall list_box1.c -o list_box1 `pkg-config --cflags --libs gtk+-3.0`

Tested on Ubuntu16.04 and GTK3.18
*/

#include

static GtkWidget *create_row(const gchar *text)
  {
GtkWidget *row=gtk_list_box_row_new();
gtk_widget_set_size_request(row, 370, 50);
gtk_list_box_row_set_selectable(GTK_LIST_BOX_ROW(row), TRUE);
gtk_list_box_row_set_activatable(GTK_LIST_BOX_ROW(row), TRUE);
GtkWidget *textview=gtk_text_view_new();
gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(textview), GTK_WRAP_CHAR);
gtk_widget_set_hexpand(textview, TRUE);
gtk_widget_set_vexpand(textview, TRUE);
GtkTextBuffer *buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview));
gtk_text_buffer_set_text(buffer, text, -1);
GtkWidget *scroll=gtk_scrolled_window_new(NULL, NULL);
gtk_widget_set_hexpand(scroll, TRUE);
gtk_widget_set_vexpand(scroll, TRUE);
gtk_container_add(GTK_CONTAINER(scroll), textview);
GtkWidget *box=gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 10);
gtk_container_set_border_width(GTK_CONTAINER(box), 5);
g_object_set (box, "margin-end", 10, NULL);
GtkWidget *label=gtk_label_new(text);  
gtk_box_pack_start(GTK_BOX(box), label, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(box), scroll, TRUE, TRUE, 0);  
gtk_container_add(GTK_CONTAINER(row), box);

return row;
  }
int main(int argc, char **argv)
  {
gtk_init(, );

GtkWidget *window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window), "List Box");
gtk_window_set_default_size(GTK_WINDOW(window), 400, 400);
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);

GtkWidget *list_box=gtk_list_box_new();
gtk_list_box_set_activate_on_single_click(GTK_LIST_BOX(list_box), TRUE);
gtk_widget_set_hexpand(list_box, TRUE);
gtk_widget_set_vexpand(list_box, TRUE);

gint i=0;
GtkWidget *row=NULL;
for(i=0;i<10;i++) 
  {
gchar *text=g_strdup_printf("Row %d", i);
row=create_row(text);
gtk_list_box_insert(GTK_LIST_BOX(list_box), row, -1);
g_free(text);
  }

GtkWidget *scroll=gtk_scrolled_window_new(NULL, NULL);
gtk_widget_set_hexpand(scroll, TRUE);
gtk_widget_set_vexpand(scroll, TRUE);
gtk_container_add(GTK_CONTAINER(scroll), list_box);

GtkWidget *grid1=gtk_grid_new();
gtk_container_set_border_width(GTK_CONTAINER(grid1), 15);
gtk_grid_set_row_spacing(GTK_GRID(grid1), 8);
gtk_grid_attach(GTK_GRID(grid1), scroll, 0, 0, 1, 1);
   
gtk_container_add(GTK_CONTAINER(window), grid1);

gtk_widget_show_all(window);

gtk_main();

return 0;  
  }

 


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Yuri Khan
On Thu, Jan 25, 2018 at 4:40 PM, Kian Karas  wrote:

>> Part Number 71-00
>> Version47.11D
>> Build Number  kk-5910
>> NATID  8988 1697 
>>  0013
>
> If a row is to span multiple lines, it might improve readability but how to
> indicate to the user that the multi-line row is only in partial view? If
> "Part Number" is in view, the second line of the "NATID" would not be.

The vertical scroll bar indicates there is something below. A
first-time user will probably scroll through all of that and get a
rough understanding of all the information there. An intermediate user
will know that NATID is two lines.

More importantly, there exists a state where the whole value is
visible on the screen, without having to press buttons to read the
whole thing. And that is important if you are reading it to somebody
over the phone, or writing it out to a sheet of paper, or comparing it
with a number on a part.

>> Sorry for turning it into a “what you want is wrong” discussion :)
>
> No, I appreciate it! I realize now that the easy fix to the tree view
> implementation I hoped for does not exist.

If it existed, you’d settle for that, and that would lead to bad user
experience.

Avoid horizontal scrolling if at all possible.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Kian Karas
On Thu, Jan 25, 2018 at 10:13 AM, Yuri Khan  wrote:

> On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas 
> wrote:
>
> > It's an industrial device with a 4.5" screen. The only input method is a
> > keypad. The keypad has up/down/left/right/enter/back buttons (and some
> other
> > domain specific keys). The before mentioned keys are used to navigate a
> menu
> > system.
> >
> > The menu system is a tree structure with multiple levels. It is used to
> > access new views (different from the menu view; domain specific
> functions),
> > status information (e.g. serial no., SW version, etc.) and change
> settings.
>
> The menu system is a tree structure, but each screen is a flat list.
> So yes, you’d need a list, not a tree.
>
The tree view was selected because it required the least code. No one on
the team had any prior experience with GTK. It was really easy to get
going. But i realize now, that it is too simple for what we would like.


>
> > Here's a screenshot of status information, including the string that does
> > not fit (last row):
> > https://imgur.com/a/4XlTK
>
> This way of organizing information is sometimes called a property
> list. Initially a two-column table seems to be an obvious
> implementation, but it suffers from this particular problem when
> horizontal space is limited.
>
> How long is that NATID? I see 13 digits and an indication there are
> more.

 It is 19 characters, but you could imagine we run into the same problem in
the future with another text.


> Is there any convention to split that into groups, like you see
> 1234 5678 9012 3456 on bank cards?

That would help readability. At the
> same time, it introduces natural points to wrap lines.
>
> Part Number 71-00
> Version47.11D
> Build Number  kk-5910
> NATID  8988 1697 
>  0013
>
If a row is to span multiple lines, it might improve readability but how to
indicate to the user that the multi-line row is only in partial view? If
"Part Number" is in view, the second line of the "NATID" would not be.
I think I would still prefer scrolling the left column some how (without a
visible scrollbar). I haven't yet looked into how I could do that so any
suggestions would be appreciated ;) I think I would like a solution where
the ellipses would be shown in either (or both!?) sides of the string to
indicate it's possible to scroll to that side.


> Also it looks like the left column is too wide. The longest visible
> label is Build Number but the NATID value starts way to the right. If
> wrapping is not an option, I’d try to make the labels shorter. In a
> pinch, “Number” can be shortened to “#”.
>
My problem is all about compromising, and making the left column less
readable, would be one compromise. However, I don't think it's a good
compromise and it is not a general solution (there might be cases where
there is no reasonable mnemonic).


> Lastly, for this screen, you could skip the list box altogether and
> organize the property list as a single column GtkBox, where each child
> is a single row GtkBox, with the label in the left cell and value in
> the right cell. This approach takes you off the listbox grid; you can
> have one row with a long label and a short value, and another row with
> a short label and a long value.
>
> Part Number   71-00
> Version  47.11D
> Build Numberkk-5910
> NATID  8988 1697   0013
>
 I have thought about this possibility of loosing the fixed column width.
It's a good compromise. It will introduces a lot code complexity in my menu
object, but that's just the way it must be.

Sorry for turning it into a “what you want is wrong” discussion :)
>
No, I appreciate it! I realize now that the easy fix to the tree view
implementation I hoped for does not exist.

I'll need to decide between the list view and your suggested box-in-box
solution.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Kian Karas
On Thu, Jan 25, 2018 at 10:13 AM, Yuri Khan  wrote:

> On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas 
> wrote:
>
> > It's an industrial device with a 4.5" screen. The only input method is a
> > keypad. The keypad has up/down/left/right/enter/back buttons (and some
> other
> > domain specific keys). The before mentioned keys are used to navigate a
> menu
> > system.
> >
> > The menu system is a tree structure with multiple levels. It is used to
> > access new views (different from the menu view; domain specific
> functions),
> > status information (e.g. serial no., SW version, etc.) and change
> settings.
>
> The menu system is a tree structure, but each screen is a flat list.
> So yes, you’d need a list, not a tree.
>
The tree view was selected because it required the least code. No one on
the team had any prior experience with GTK. It was really easy to get
going. But i realize now, that it is too simple for what we would like.


>
> > Here's a screenshot of status information, including the string that does
> > not fit (last row):
> > https://imgur.com/a/4XlTK
>
> This way of organizing information is sometimes called a property
> list. Initially a two-column table seems to be an obvious
> implementation, but it suffers from this particular problem when
> horizontal space is limited.
>
> How long is that NATID? I see 13 digits and an indication there are
> more.

 It is 19 characters, but you could imagine we run into the same problem in
the future with another text.


> Is there any convention to split that into groups, like you see
> 1234 5678 9012 3456 on bank cards?

That would help readability. At the
> same time, it introduces natural points to wrap lines.
>
> Part Number 71-00
> Version47.11D
> Build Number  kk-5910
> NATID  8988 1697 
>  0013
>
If a row is to span multiple lines, it might improve readability but how to
indicate to the user that the multi-line row is only in partial view? If
"Part Number" is in view, the second line of the "NATID" would not be.
I think I would still prefer scrolling the left column some how (without a
visible scrollbar). I haven't yet looked into how I could do that so any
suggestions would be appreciated ;) I think I would like a solution where
the ellipses would be shown in either (or both!?) sides of the string to
indicate it's possible to scroll to that side.


> Also it looks like the left column is too wide. The longest visible
> label is Build Number but the NATID value starts way to the right. If
> wrapping is not an option, I’d try to make the labels shorter. In a
> pinch, “Number” can be shortened to “#”.
>
My problem is all about compromising, and making the left column less
readable, would be one compromise. However, I don't think it's a good
compromise and it is not a general solution (there might be cases where
there is no reasonable mnemonic).


> Lastly, for this screen, you could skip the list box altogether and
> organize the property list as a single column GtkBox, where each child
> is a single row GtkBox, with the label in the left cell and value in
> the right cell. This approach takes you off the listbox grid; you can
> have one row with a long label and a short value, and another row with
> a short label and a long value.
>
> Part Number   71-00
> Version  47.11D
> Build Numberkk-5910
> NATID  8988 1697   0013
>
 I have thought about this possibility of loosing the fixed column width.
It's a good compromise. It will introduces a lot code complexity in my menu
object, but that's just the way it must be.

Sorry for turning it into a “what you want is wrong” discussion :)
>
No, I appreciate it! I realize now that the easy fix to the tree view
implementation I hoped for does not exist.

I'll need to decide between the list view and your suggested box-in-box
solution.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Yuri Khan
On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas  wrote:

> It's an industrial device with a 4.5" screen. The only input method is a
> keypad. The keypad has up/down/left/right/enter/back buttons (and some other
> domain specific keys). The before mentioned keys are used to navigate a menu
> system.
>
> The menu system is a tree structure with multiple levels. It is used to
> access new views (different from the menu view; domain specific functions),
> status information (e.g. serial no., SW version, etc.) and change settings.

The menu system is a tree structure, but each screen is a flat list.
So yes, you’d need a list, not a tree.

> Here's a screenshot of status information, including the string that does
> not fit (last row):
> https://imgur.com/a/4XlTK

This way of organizing information is sometimes called a property
list. Initially a two-column table seems to be an obvious
implementation, but it suffers from this particular problem when
horizontal space is limited.

How long is that NATID? I see 13 digits and an indication there are
more. Is there any convention to split that into groups, like you see
1234 5678 9012 3456 on bank cards? That would help readability. At the
same time, it introduces natural points to wrap lines.

Part Number 71-00
Version47.11D
Build Number  kk-5910
NATID  8988 1697 
 0013

Also it looks like the left column is too wide. The longest visible
label is Build Number but the NATID value starts way to the right. If
wrapping is not an option, I’d try to make the labels shorter. In a
pinch, “Number” can be shortened to “#”.

Lastly, for this screen, you could skip the list box altogether and
organize the property list as a single column GtkBox, where each child
is a single row GtkBox, with the label in the left cell and value in
the right cell. This approach takes you off the listbox grid; you can
have one row with a long label and a short value, and another row with
a short label and a long value.

Part Number   71-00
Version  47.11D
Build Numberkk-5910
NATID  8988 1697   0013

Sorry for turning it into a “what you want is wrong” discussion :)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Kian Karas
You're right, I tried to keep the information level low in case there was
an actual solution to what I hoped was possible. In lack of that, here is a
more thorough description of the problem domain.

It's an industrial device with a 4.5" screen. The only input method is a
keypad. The keypad has up/down/left/right/enter/back buttons (and some
other domain specific keys). The before mentioned keys are used to navigate
a menu system.

The menu system is a tree structure with multiple levels. It is used to
access new views (different from the menu view; domain specific functions),
status information (e.g. serial no., SW version, etc.) and change settings.

Here's a screenshot of status information, including the string that does
not fit (last row):
https://imgur.com/a/4XlTK

We're currently using the tree view for implementing the menu. However,
Eric's is probably right in that the list box is better suited for this. It
is better suited for changing settings directly (we current have to push a
new "edit view", let the user change the settings, and then pop the "edit
view" to return to the menu).

The challenge with this kind of UI (small screen and keypad input) is to
keep the number of key presses low and the information density high.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Yuri Khan
On Mon, Jan 22, 2018 at 6:03 PM, Kian Karas  wrote:

> I have a GtkTreeview with size constraints, which causes the text of one
> particular column in one particular row not to fit into its cell.
>
> Is there a way for the user to scroll the content of a specific cell (i.e.
> a specific column in the current highlighted row) - e.g. with the keyboard
> arrow keys, when the GtkTreeview has focus?
>
> My GtkTreeview has two columns and multiple rows. It is currently only one
> particular row in my right column that suffers from this issue. However, it
> would be great if the solution would be general enough to support scrolling
> of the right column of any row (if the content do not fit). I do not expect
> to have this issue on my left column. The right column only ever contains
> text (GtkCellRendererText).


You keep talking about the chosen solution scheme in general (“I want
to scroll a single cell in a {tree|list} box, and without using a
scroll bar at that”) but I think it would be useful to see the problem
that led you to this scheme.

What is your application? What are your left and right columns? What
are your rows? Why is it that only one right column in one particular
row needs scrolling? Maybe even provide some sample texts.

You also mention some input device constraints (no mouse, limited
buttons) — how is your device going to be used?

After you answer these questions, maybe someone will suggest a
different presentation.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Kian Karas
Hi Eric

I was not aware of the list box. It looks more flexible than the tree view,
and might be what i need.

However, then my problem would be to scroll some other widget (other than a
GtkTreeview cell), without adding a scroll bar. The only space I have is
within the cell of the table. Using cario to draw the ellipses is my only
idea for indicating scroll ability. Maybe I could add a scroll bar of zero
size...

Thanks.

On Wed, Jan 24, 2018 at 7:38 PM,  wrote:

> Hi Kian,
>
> Have you tried a GtkListBox for this? You can probably setup a scrolling
> window in a row in a listbox.
>
> https://blog.gtk.org/2017/06/01/drag-and-drop-in-lists-revisited/
>
> Eric
>
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Eric Cashon via gtk-app-devel-list
Hi Kian,

Have you tried a GtkListBox for this? You can probably setup a scrolling window 
in a row in a listbox. 

https://blog.gtk.org/2017/06/01/drag-and-drop-in-lists-revisited/

Eric
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Kian Karas
On Wed, Jan 24, 2018 at 12:42 PM, Lucky B.C  wrote:

> There's no supporting for scrolling one cell! But If I'm not wrong, the
> string value you put in the right column is a very long text, isn't it? And
> you want a solution for seeing the text in the limited view, don't you?
>
Yes, that's exactly my problem.


> Okay! We can make the text rendering in that way by 2 steps:
>
> 1) For a detailed view, you should open/download a gtk-demo (gtk3 in my
> case), then you scroll to 'Tree View' -> 'Editable Cell', try to click and
> edit any cell under the Column called Product. Now you can see a
> GtkCellRendererText can be editable
> 
> (TRUE/FALSE) default: FALSE.
>

> 2) The Right Column of yours can be set a limited width characters
> 
> which will not show more if the input text is reached out the limited. But
> in your case, you should see ellipsize property
> 
>  Default
> value: PANGO_ELLIPSIZE_NONE, so you should choose one of options
> .
>
>
I'm already doing this.


>
> Note: You can read the very long text by double clicking into any cell
> under your second/right column!
>
I do not wan't the cell to be editable - it's unintuitive, when the value
can not actually be changed. Also, I have no mouse, and I would like to
avoid extra button clicks for entering a mode where scrolling is possible.


> Or if you don't want the way, you should make another
> GtkCellRender_Private which can be scrolled.
>

Okay, maybe my only option is to make my own cell renderer.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Lucky B.C
There's no supporting for scrolling one cell! But If I'm not wrong, the
string value you put in the right column is a very long text, isn't it? And
you want a solution for seeing the text in the limited view, don't you?
Okay! We can make the text rendering in that way by 2 steps:

1) For a detailed view, you should open/download a gtk-demo (gtk3 in my
case), then you scroll to 'Tree View' -> 'Editable Cell', try to click and
edit any cell under the Column called Product. Now you can see a
GtkCellRendererText can be editable

(TRUE/FALSE) default: FALSE.

2) The Right Column of yours can be set a limited width characters

which will not show more if the input text is reached out the limited. But
in your case, you should see ellipsize property

Default
value: PANGO_ELLIPSIZE_NONE, so you should choose one of options
.


Note: You can read the very long text by double clicking into any cell
under your second/right column! Or if you don't want the way, you should
make another GtkCellRender_Private which can be scrolled.

On Wed, Jan 24, 2018 at 5:53 PM, Kian Karas 
wrote:

> You're right that it is possible to add a horizontal scroll bar.
> I just don't have that option (design choice). Hence, my question was
> centered about scrolling one cell.
>
> This is for an embedded device with a 4.5" screen, a few navigation
> buttons, and no mouse.
>
> On Wed, Jan 24, 2018 at 11:15 AM, infirit  wrote:
>
> > Op 01/22/2018 om 12:03 PM schreef Kian Karas:
> > > I have a GtkTreeview with size constraints, which causes the text of
> one
> > > particular column in one particular row not to fit into its cell.
> >
> > If I remember correctly a GtkTreeView is scrollable so it will add
> > scrollbars when it has grown larger than its parent widget/window.
> >
> > > Is there a way for the user to scroll the content of a specific cell
> > (i.e.
> > > a specific column in the current highlighted row) - e.g. with the
> > keyboard
> > > arrow keys, when the GtkTreeview has focus?
> >
> > If I understand correctly you force the TreeView to be a specific size.
> > I would try to drop that limitation and force the size on the parent
> > instead and let the TreeView add scrollbars when needed.
> >
> > ~infirit
> >
> > ps: attachments are not allowed
> >
> >
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Kian Karas
You're right that it is possible to add a horizontal scroll bar.
I just don't have that option (design choice). Hence, my question was
centered about scrolling one cell.

This is for an embedded device with a 4.5" screen, a few navigation
buttons, and no mouse.

On Wed, Jan 24, 2018 at 11:15 AM, infirit  wrote:

> Op 01/22/2018 om 12:03 PM schreef Kian Karas:
> > I have a GtkTreeview with size constraints, which causes the text of one
> > particular column in one particular row not to fit into its cell.
>
> If I remember correctly a GtkTreeView is scrollable so it will add
> scrollbars when it has grown larger than its parent widget/window.
>
> > Is there a way for the user to scroll the content of a specific cell
> (i.e.
> > a specific column in the current highlighted row) - e.g. with the
> keyboard
> > arrow keys, when the GtkTreeview has focus?
>
> If I understand correctly you force the TreeView to be a specific size.
> I would try to drop that limitation and force the size on the parent
> instead and let the TreeView add scrollbars when needed.
>
> ~infirit
>
> ps: attachments are not allowed
>
>
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Scrolling a GtkTreeview cell

2018-01-24 Thread infirit
Op 01/22/2018 om 12:03 PM schreef Kian Karas:
> I have a GtkTreeview with size constraints, which causes the text of one
> particular column in one particular row not to fit into its cell.

If I remember correctly a GtkTreeView is scrollable so it will add
scrollbars when it has grown larger than its parent widget/window.

> Is there a way for the user to scroll the content of a specific cell (i.e.
> a specific column in the current highlighted row) - e.g. with the keyboard
> arrow keys, when the GtkTreeview has focus?

If I understand correctly you force the TreeView to be a specific size.
I would try to drop that limitation and force the size on the parent
instead and let the TreeView add scrollbars when needed.

~infirit

ps: attachments are not allowed

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Kian Karas
Please see attached screenshot (4.5" screen - hence the size constraint).

I was imagining using the arrow keys to move the text in the right column
of the selected row. Ellipses could then show up on both sides of the
"visible" text.

On Wed, Jan 24, 2018 at 6:30 AM, Lucky B.C  wrote:

> Hi, can you show a demo about the problem?
>
> On Mon, Jan 22, 2018 at 6:03 PM, Kian Karas 
> wrote:
> > Hi,
> >
> > I have a GtkTreeview with size constraints, which causes the text of one
> > particular column in one particular row not to fit into its cell.
> >
> > Is there a way for the user to scroll the content of a specific cell
> (i.e.
> > a specific column in the current highlighted row) - e.g. with the
> keyboard
> > arrow keys, when the GtkTreeview has focus?
> >
> > My GtkTreeview has two columns and multiple rows. It is currently only
> one
> > particular row in my right column that suffers from this issue. However,
> it
> > would be great if the solution would be general enough to support
> scrolling
> > of the right column of any row (if the content do not fit). I do not
> expect
> > to have this issue on my left column. The right column only ever contains
> > text (GtkCellRendererText).
> >
> > Thanks!
> > Kian Karas
> > ___
> > gtk-app-devel-list mailing list
> > gtk-app-devel-list@gnome.org
> > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Scrolling a GtkTreeview cell

2018-01-23 Thread Lucky B.C
Hi, can you show a demo about the problem?

On Mon, Jan 22, 2018 at 6:03 PM, Kian Karas  wrote:
> Hi,
>
> I have a GtkTreeview with size constraints, which causes the text of one
> particular column in one particular row not to fit into its cell.
>
> Is there a way for the user to scroll the content of a specific cell (i.e.
> a specific column in the current highlighted row) - e.g. with the keyboard
> arrow keys, when the GtkTreeview has focus?
>
> My GtkTreeview has two columns and multiple rows. It is currently only one
> particular row in my right column that suffers from this issue. However, it
> would be great if the solution would be general enough to support scrolling
> of the right column of any row (if the content do not fit). I do not expect
> to have this issue on my left column. The right column only ever contains
> text (GtkCellRendererText).
>
> Thanks!
> Kian Karas
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Scrolling a GtkTreeview cell

2018-01-22 Thread Kian Karas
Hi,

I have a GtkTreeview with size constraints, which causes the text of one
particular column in one particular row not to fit into its cell.

Is there a way for the user to scroll the content of a specific cell (i.e.
a specific column in the current highlighted row) - e.g. with the keyboard
arrow keys, when the GtkTreeview has focus?

My GtkTreeview has two columns and multiple rows. It is currently only one
particular row in my right column that suffers from this issue. However, it
would be great if the solution would be general enough to support scrolling
of the right column of any row (if the content do not fit). I do not expect
to have this issue on my left column. The right column only ever contains
text (GtkCellRendererText).

Thanks!
Kian Karas
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list