Button bar with resizing like nautilus

2018-03-28 Thread rastersoft
Hi again: How can I do a button bar like the one used in nautilus to show the current path, that when there are too many buttons to fit in the screen, it adds two extra buttons to "scroll" them? Thansk. ___ gtk-app-devel-list mailing list gtk-app-d

Re: Moving/resizing a window in real-time

2017-07-20 Thread Eric Cashon via gtk-app-devel-list
Hi Alex, The OpenCV window_gtk.cpp isn't so simple. A lot of tough concepts there. For example the code is written for compiling with both GTK2 and GTK3, makes use of threads, creates a custom GTK widget, uses GTK OpenGL if it can, etc. The GTK functions can only be called on the "main" thr

Moving/resizing a window in real-time

2017-07-19 Thread Alexander Magsam
Hello all, I am creating a program that uses face detection coordinates to move/resize a window in real-time. The GTK+ component of this program is fairly simple I believe, but I cannot seem to figure out what is going wrong. I would like the window to stay visible the entire time without havi

Re: Scrolled window child contents showing on other widgets when resizing window in scrolled state

2015-03-09 Thread Colomban Wendling
Hi, Le 09/03/2015 08:41, Pramathesh Ambasta a écrit : > […] > > The ui consists of a main window, a grid in which are packed a File > ChooserWidget (above) and a scrolled window below. The scrolled window > has a layout or a drawing area with a viewport as a child. > > In the layout or the drawi

Scrolled window child contents showing on other widgets when resizing window in scrolled state

2015-03-09 Thread Pramathesh Ambasta
Hi. I am new to programming and gtk+ I am trying to implement a small application using GTK 3.0, glade and Anjuta. The ui consists of a main window, a grid in which are packed a File ChooserWidget (above) and a scrolled window below. The scrolled window has a layout or a drawing area with a viewp

Re: GtkHeaderBar, broadway & window manipulation ( moving, resizing ) with broadway

2015-02-17 Thread Daniel Kasak
ing under X. When I try it out in broadway, I can't > move > > *or* resize windows, which is a deal-breaker for GtkHeaderBar > > functionality. I can move the window in code - which is OK for a single > > window, but not really good enough if there will be multiple wind

Re: GtkHeaderBar, broadway & window manipulation ( moving, resizing ) with broadway

2015-02-16 Thread Jerome Flesch
ut not really good enough if there will be multiple windows. > > Is this a known issue? Is there something I'm missing to allow moving & > resizing under broadway? I should note that if I *don't* use the > GtkHeaderBar, I can move and resize windows under broadway. > >

GtkHeaderBar, broadway & window manipulation ( moving, resizing ) with broadway

2015-02-16 Thread Daniel Kasak
indow in code - which is OK for a single window, but not really good enough if there will be multiple windows. Is this a known issue? Is there something I'm missing to allow moving & resizing under broadway? I should note that if I *don't* use the GtkHeaderB

Re: Image resizing

2013-06-09 Thread Kip Warner
On Sun, 2013-06-09 at 00:12 -0700, Andrew Potter wrote: > One approach is ditching the ScrolledWindow and overriding the > get_preferred_width_for_height/width() vfuncs to return the full image > width, and then in size_allocate() set the image to a scaled pixbuf of the > allocated width. > > Thi

Re: Image resizing

2013-06-09 Thread Andrew Potter
On Sat, Jun 8, 2013 at 10:27 PM, Kip Warner wrote: > The banner image should automatically resize as the window is resized. > It should use the full width available in the parent page (GtkBox), but > the image's height should be calculated as a function of the aspect > ratio to keep it from being

Image resizing

2013-06-08 Thread Kip Warner
Hey list, I'm still having issues with my Gtk+ code. I have a GtkAssistant with a bunch of pages (GtkBoxes) with various child widgets in them defined through Glade. At runtime, a banner image is inserted into the top of each page as the first child widget. This is done by placing the banner image

Resizing GtkButton

2013-04-02 Thread Jakub Kucharski
I have 3 buttons in a GtkBox and want to make them smaller than they are by default. Here's the code: https://gist.github.com/dexcret/520172463e2e4409cdca. I tried to use gtk_widget_set_size_request() both on GtkBox and GtkButton's separately, but it didn't work. What do you think? -- Regards. Jak

Re: GtkTable cells resizing

2012-05-17 Thread James Steward
On 15/05/12 14:45, Tristan Van Berkom wrote: On Mon, May 14, 2012 at 10:29 PM, James Steward wrote: On 15/05/12 11:56, Tristan Van Berkom wrote: ... perhaps it's worth trying an extra call to gtk_widget_queue_resize() after modifying your table. I'm trying that. I have

Re: GtkTable cells resizing

2012-05-14 Thread Tristan Van Berkom
gt;>> Hi, >>> >>> I have an application with a tabbed view.  On two tabs I have a table, >>> one >>> is a 2x2 table, the other a 3x1 table (3 rows). >>> >>> In each cell is a canvas that has a gtk plot. >>> >>> I want to be

Re: GtkTable cells resizing

2012-05-14 Thread James Steward
original, with the other two canvases being 1/6 the original size. After redrawing and resizing and mucking about, I can't get the table rows to be different sizes, accommodating the different sized canvases properly, even though I have gtk_table_set_

Re: GtkTable cells resizing

2012-05-14 Thread Tristan Van Berkom
the > canvas size to 2/3 the original, with the other two canvases being 1/6 the > original size. > > After redrawing and resizing and mucking about, I can't get the table rows > to be different sizes, accommodating the different sized canvases properly, > even though I have gtk_tab

GtkTable cells resizing

2012-05-14 Thread James Steward
other two canvases being 1/6 the original size. After redrawing and resizing and mucking about, I can't get the table rows to be different sizes, accommodating the different sized canvases properly, even though I have gtk_table_set_homogeneous (table, FALSE); Any clues how to do

Re: [beginner] widget layout and resizing

2012-01-24 Thread Tristan Van Berkom
On Tue, Jan 24, 2012 at 8:24 AM, Axel FILMORE wrote: > Hi there, > > I'm developing an experimental panel, not something really serious > currently, just to learn Gtk+ and Vala. > > I've done a few things yet, creating an application menu, adding some > launchers, adding some widgets like, a pager

[beginner] widget layout and resizing

2012-01-23 Thread Axel FILMORE
Hi there, I'm developing an experimental panel, not something really serious currently, just to learn Gtk+ and Vala. I've done a few things yet, creating an application menu, adding some launchers, adding some widgets like, a pager, a window list from libwnck. I searched into existing panel

Re: Label resizing window, ellipsizing

2012-01-02 Thread Tristan Van Berkom
Try setting "width-chars" property as well as "max-width-chars" property. GtkLabel apis could use a face-lift. It's possible that the default minimum width request exceeds the 10 max-width-chars which you set (which is what I assume is causing this problem). Cheers, -Tristan On Fri, De

Label resizing window, ellipsizing

2012-01-02 Thread David Gomes
Hello there, I was wondering if there was a way of avoiding a label (in a notebook) to resize the window when the text in it is too big. I heard of ellipsizing, and EllipsizeMode.END seems great for me, but if I ellipsize it, it will be ellipsized even if the label is small. So, I want to ellips

Gtk3 and resizing GtkTreeView columns

2011-11-10 Thread Michael Cronenworth
I ported an app from GTK2 to GTK3. Aside from lots of function renaming and layout adjusting due to the flipping of the expand flag... I have a problem with columns in GtkTreeView widgets. In GTK2, resizing a column with the mouse past the width of the visible tree wouldn't cause the

Re: bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread N James Bridge
On Sun, 2010-11-14 at 12:48 +, James Morris wrote: > On 14 November 2010 12:40, N James Bridge wrote: > > Thanks for input. I assume you did see the same error in drawing - some > > areas inside the drawing come out solid black? > > Yes. > > > I will have to look up valgrind. All of this is

Re: bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread James Morris
On 14 November 2010 12:40, N James Bridge wrote: > Thanks for input. I assume you did see the same error in drawing - some > areas inside the drawing come out solid black? Yes. > I will have to look up valgrind. All of this is a big learning exercise! Valgrind sometimes spots initialization err

Re: bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread N James Bridge
On Sun, 2010-11-14 at 11:17 +, James Morris wrote: > On 13 November 2010 22:18, N James Bridge wrote: > > I am hoping someone will have the time to look at this. I have been > > developing a gtk/cairo program to draw views of the Mandelbrot set. ... > > I am using gtk2-2.22.0-1.fc14.1.x86_64,

Re: bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread James Morris
t worked but occasionally seemed to misbehave. Below is > a cut-back version which illustrates the problem. A left click with the > mouse sets a starting point which behaves correctly; a right click sets > a nearby point which produces a very similar figure but which > misbehaves. To see thi

bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread N James Bridge
which illustrates the problem. A left click with the mouse sets a starting point which behaves correctly; a right click sets a nearby point which produces a very similar figure but which misbehaves. To see this first try resizing the window - for some sizes it is drawn correctly but for others not

Question about window resizing

2010-05-11 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have an app where I have been using gtk_window_set_policy that I have it set to allow the window to grow and shrink and I set a specific size on a GtkSocket that is embedded in the window using gtk_widget_set_size_request. I am trying to prepare my c

Re: Widget choice / top level window resizing

2010-03-25 Thread David Nečas
On Thu, Mar 25, 2010 at 09:28:01AM +1100, Matthew Allen wrote: > The code I'm porting to Gtk has all it's own layout systems in place > anyway and I want to bypass using Gtk layout to get something working > quickly. At the moment I can get a basic window showing on the screen > with an appropriate

Widget choice / top level window resizing

2010-03-24 Thread Matthew Allen
Hi, The code I'm porting to Gtk has all it's own layout systems in place anyway and I want to bypass using Gtk layout to get something working quickly. At the moment I can get a basic window showing on the screen with an appropriate set of child widgets using GtkFixed, however the main window i

Re: Resizing

2009-10-07 Thread John Coppens
Frame with table (with ScrollWdw, ok) But, if I enlarge the outer window, the Vbox doesn't grow: the menu stays the same width, as does the HPaned. I've checked the properties of all of the elements, and, as far as I can see, all the resizing/etc flags which could influence, are set. I have

Re: Resizing

2009-10-07 Thread jcupitt
2009/10/7 John Coppens : > - 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 wider, wider than the frame, which doesn't resize, and neith

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 wi

reduce flicker while resizing columns of GtkTreeView on Windows

2007-08-28 Thread Abirami.T
hi all, While trying to resize the GtkTreeView Columns on Windows Operating System, the text (label) in the column header seems to flicker (as the background of the treeview is visible.) This does not happen on Linux. What needs to be done to reduce this flicker so that the resize appears

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

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 to

Re: Repost: Resizing and Moving a GtkWindow doesn't work

2007-03-27 Thread Gian Mario Tagliaretti
2007/3/27, Gaurav Jain <[EMAIL PROTECTED]>: > In my application I need to resize and move a GtkWindow to a new > location, and I'm using the gtk_window_resize() and gtk_window_move() > APIs for the purpose. However, these APIs do not work sometimes. I guess it's a Window Manager problem that doe

Repost: Resizing and Moving a GtkWindow doesn't work

2007-03-26 Thread Gaurav Jain
Hi, Sorry about reposting this. I didn't receive any responses to this message I sent last week on this list, so maybe my earlier message was missed by the list members. I would really appreciate if I can get some any tips on the problem I'm facing!! In my application I need to resize and move

Resizing and Moving a GtkWindow doesn't work

2007-03-23 Thread Gaurav Jain
Hi, In my application I need to resize and move a GtkWindow to a new location, and I'm using the gtk_window_resize() and gtk_window_move() APIs for the purpose. However, these APIs do not work sometimes. For example, refer my sample program at the end of this mail. If the initial location of my

Re: Resizing window

2006-09-09 Thread Samuel Cormier-Iijima
Hi, Sorry for replying so late... but your example didn't really work for me. Basically, I need a GtkExpander inside a file chooser dialog for some advanced options. I'd like it to work similarly to the FileChooserDialog when in "save" mode (try it out with GEdit->Save As, and the expander makes t

Fwd: Resizing window

2006-08-23 Thread Fernando Apesteguía
-- Forwarded message -- From: Iago Rubio <[EMAIL PROTECTED]> Date: Aug 22, 2006 12:40 PM Subject: Re: Resizing window To: gtk-app-devel-list@gnome.org On Tue, 2006-08-22 at 11:54 +0200, Iago Rubio wrote: > On Tue, 2006-08-22 at 09:22 +0200, Fernando Apesteguía wrote: >

Re: Resizing window

2006-08-22 Thread Iago Rubio
On Tue, 2006-08-22 at 11:54 +0200, Iago Rubio wrote: > On Tue, 2006-08-22 at 09:22 +0200, Fernando Apesteguía wrote: > > I'm still looking for a solution. My app has internationalization support. > > So make the window fixed is not possible in order to allow all the different > > messages to fit in

Re: Resizing window

2006-08-22 Thread Iago Rubio
On Tue, 2006-08-22 at 09:22 +0200, Fernando Apesteguía wrote: > I'm still looking for a solution. My app has internationalization support. > So make the window fixed is not possible in order to allow all the different > messages to fit in the window. I'll read more documentation. > > More ideas? H

Re: Resizing window

2006-08-22 Thread Fernando Apesteguía
On 8/22/06, Samuel Cormier-Iijima <[EMAIL PROTECTED]> wrote: > > I had the same problem with a FileChooserWidget with an extra > GtkExpander widget in it. One solution is to make the window fixed > (unresizable). Of course, the downside is that the user can't ­­resize > it himself. Let me know if y

Re: Resizing window

2006-08-21 Thread Samuel Cormier-Iijima
I had the same problem with a FileChooserWidget with an extra GtkExpander widget in it. One solution is to make the window fixed (unresizable). Of course, the downside is that the user can't ­­resize it himself. Let me know if you find another solution! Cheers, Samuel On 8/21/06, Fernando Apestegu

Resizing window

2006-08-21 Thread Fernando Apesteguía
Hi list! I'm developing a simple application. I have a tabbed pane. Some of these tabs are bigger than others, with more text and more widgets. When I click on one of these tabs, the window growns, what is great, but when I click in a smaller tab, the window doen't return to the minimum required s

Re: Re: GtkFixed child control resizing

2006-07-05 Thread Atanas Atanasov
Thanks. It worked perfectly. Atanas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Re: GtkFixed child control resizing

2006-07-05 Thread John Cupitt
On 7/5/06, Atanas Atanasov <[EMAIL PROTECTED]> wrote: > Thanks. The size request worked. However there is an issue. Say I > create my label to cover all the GtkFixed and set its text > justification to left. What I expect to see is something like: The justification setting controls the way line wr

Re: GtkFixed child control resizing

2006-07-05 Thread Tristan Van Berkom
Atanas Atanasov wrote: [...] > but what I see is > > /--\ > | | > | line 1 is longer | > | line2| > | | > \--/ Have you set the xalign property to 0.0 ? Cheers,

Re: GtkFixed child control resizing

2006-07-05 Thread Atanas Atanasov
Thanks. The size request worked. However there is an issue. Say I create my label to cover all the GtkFixed and set its text justification to left. What I expect to see is something like: /--\ | | |line 1 is longer | |line2

Re: GtkFixed child control resizing

2006-07-05 Thread Tristan Van Berkom
Atanas Atanasov wrote: > I have a GtkWindow with a single GtkFixedChild. Then all the rest of > the interface goes into the GtkFixed with exact positions which I can > set through gtk_fixed_put or gtk_fixed_move. Suppose I have a GtkLabel > child. I would like to be able to set its size and apply a

GtkFixed child control resizing

2006-07-05 Thread Atanas Atanasov
I have a GtkWindow with a single GtkFixedChild. Then all the rest of the interface goes into the GtkFixed with exact positions which I can set through gtk_fixed_put or gtk_fixed_move. Suppose I have a GtkLabel child. I would like to be able to set its size and apply a text alignment through gtk_lab

Resizing GtkDrawingArea inside GtkScrolledWindow

2006-05-31 Thread Gustavo Cipriano Mota Sousa
I have a GtkDrawingArea added to a GtkScrolledWindow using gtk_scrolled_window_add_with_viewport(). I am trying to resize the drawing area calling gtk_widget_set_size_request(), but when I do so, the toplevel widget (GtkWindow) also gets resized. I'd like to know how to resize just the drawing

Auto resizing of children?

2006-04-18 Thread Leon Ross
pairs) then is seems to resize everything to fit the maximum area that doesn't need scroll capabilities. This make the combo boxes huge. Is there a way to have it not do this and always use the defualt size of the children instead of resizing everything to fit? Attached is the image of my gui

widget doesn't show up at application start, but after resizing window

2005-11-08 Thread Jochen Damerau
Hello, I am writing an application using a VteTerminal in a GtkWindow. Everything works fine, except one thing. When I run the application, the Terminal is not displayed. Instead a copy of the desktop background (including everything that is behind the starting window) is displayed in the location

Re: Resizing an image widget

2005-08-22 Thread Tristan Van Berkom
LaundroMat wrote: I realise I wasn' t too clear in my mail. The thing is, I have a window with essentially 3 boxes: A B C A = image B = labels C = text entry The height of B (and C for that matter) is smaller than that of A. But I would like to resize A to the height of C. If you set the "h

Re: Resizing an image widget

2005-08-22 Thread LaundroMat
I realise I wasn' t too clear in my mail. The thing is, I have a window with essentially 3 boxes: A B C A = image B = labels C = text entry The height of B (and C for that matter) is smaller than that of A. But I would like to resize A to the height of C. On 8/22/05, Tristan Van Berkom <[EMAIL

Re: Resizing an image widget

2005-08-22 Thread Tristan Van Berkom
LaundroMat wrote: Hi all - First time here, thanks for having a look at this. I have a window, consisting of a horizontal box, with 3 vboxes in it. One vbox contains an image, another a set of labels and the third has text entry widgets. How can I resize the image to the unexpanded size of th

Resizing an image widget

2005-08-22 Thread LaundroMat
Hi all - First time here, thanks for having a look at this. I have a window, consisting of a horizontal box, with 3 vboxes in it. One vbox contains an image, another a set of labels and the third has text entry widgets. How can I resize the image to the unexpanded size of the vboxes containing

size-allocate ginal and layout resizing.

2005-05-20 Thread Barath K. Seshadri
Hi, I have a gtklabel and am using g_signal_connect hadnler to the size-allocate signal to modify the size of the layout based on the text font size. So if the text is too tall to fit, based on the text height being greater than the layout's height I reduce the font size by 1 pt till it