Re: Setting treeview column width
On Thu, Aug 30, 2007 at 01:22:31PM +0800, Binary Chen wrote: With following code, I still can't make a fixed sized treeview column, the column's width is large even after I have set its size, whats wrong with it? Any other thing affect it? column = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(column, _(Name)); gtk_tree_view_column_set_fixed_width(column, 3); gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_FIXED); gtk_tree_view_insert_column(GTK_TREE_VIEW(treeview), column, -1); gtk_tree_view_column_set_resizable(column, FALSE); If the column is the last in the treeview, it will fill all the remaning width even if it's fixed-size -- unless there are some expanding columns present. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Send mouse button press event to widget??
Hi All, Am a newbie to linux gtk programming.I want trying to send the mouse button press event to my widget and so I tried this code: Code: ### guint signalid = g_signal_new(button_press_event, G_TYPE_FUNDAMENTAL(0), G_SIGNAL_RUN_FIRST, NULL, NULL, NULL, NULL, G_TYPE_NONE,0); g_signal_emit(GTK_OBJECT(gPage),signalid,0); ### Can someone tell me what is wrong out there? Thanks in advance. --eminemence. -- View this message in context: http://www.nabble.com/Send-mouse-button-press-event-to-widget---tf4353330.html#a12404489 Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Check Boxes Don't Work Independently
The attached program works but the all the check boxes get checked or unchecked when only one is clicked. Sometimes the mouse has to move accross the rows to refresh the display. Can someone explain why this happens and where the mouseover event is coming from? If you run the program you'll see what I mean. Thanks in advance, --dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Check Boxes Don't Work Independently
30 aug 2007 kl. 13.55 skrev dhk: Hi, The attached program works but the all the check boxes get checked or unchecked when only one is clicked. Sometimes the mouse has to move accross the rows to refresh the display. Can someone explain why this happens and where the mouseover event is coming from? If you run the program you'll see what I mean. Seems like you missed the attachment. Regards, Mikael Hallendal Thanks in advance, --dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Imendio AB, http://www.imendio.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Send mouse button press event to widget??
I am creating a virtual cursor on a web page and want to simulate the left click of the mouse button when the user presses the enter button. So I tried even using the gdk_event_put on the global window itself,assuming the event would find it's way to the control under the cursor. The gdk_event_put has not been successful,so what is the way to achieve this? --Mayur. David Nečas (Yeti)-2 wrote: On Thu, Aug 30, 2007 at 03:37:04AM -0700, eminemence wrote: Am a newbie to linux gtk programming.I want trying to send the mouse button press event to my widget and so I tried this code: Code: ### guint signalid = g_signal_new(button_press_event, G_TYPE_FUNDAMENTAL(0), G_SIGNAL_RUN_FIRST, NULL, NULL, NULL, NULL, G_TYPE_NONE,0); g_signal_emit(GTK_OBJECT(gPage),signalid,0); ### Can someone tell me what is wrong out there? Several things: 1) g_signal_new() creates (registers) a new signal for a class -- a new `type' of signal. This is not what you want, you want to emit an existing signal button-press-event (though see below). 2) The g_signal_new() arguments are bogus, for instance if you actually registered a new signal for GtkWidget, you would pass GTK_TYPE_WIDGET, not G_TYPE_FUNDAMENTAL(0) (which makes little sense) as the instance type, but since you don't want to register a new signal, I will leave this. 3) Signal is emitted with g_signal_emit() -- or rather g_signal_emit_by_name() if done by code outside the class: g_signal_emit_by_name(button, clicked); (in practice a method to emit this signal is defined for most signal one wants to emit in application code, so you would use gtk_button_clicked() here). 4) Events are special and sending events is done by a different functions than normal signal emission: gtk_main_do_event() or gtk_widget_event(). First you synthetize the event by creating it with gdk_event_new() and filling the fields, then send it and free with gdk_event_free(). Now, forget all this because in almost all cases you think you need to send a synthetic an event to a widget, a better solution exists. So, tell what you want to achieve. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- View this message in context: http://www.nabble.com/Send-mouse-button-press-event-to-widget---tf4353330.html#a12406136 Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Check Boxes Don't Work Independently
Hi, No attachment has ever made it to the list that I remember It seems the list program strips them (and probably with reason) Please include the program in-line (preferably a minimal example of the problem) If it's too big, consider ftp or http hosting... Cheers, Jonathan On 8/30/07, Mikael Hallendal [EMAIL PROTECTED] wrote: 30 aug 2007 kl. 13.55 skrev dhk: Hi, The attached program works but the all the check boxes get checked or unchecked when only one is clicked. Sometimes the mouse has to move accross the rows to refresh the display. Can someone explain why this happens and where the mouseover event is coming from? If you run the program you'll see what I mean. Seems like you missed the attachment. Regards, Mikael Hallendal Thanks in advance, --dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Imendio AB, http://www.imendio.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Morpheus linux, c'est une question de VI ou de MORE ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Check Boxes Don't Work Independently
Let's try it again. The attached and inline program works but the all the check boxes get checked or unchecked when only one is clicked. Sometimes the mouse has to move accross the rows to refresh the display. Can someone explain why this happens and where the mouseover event is coming from? If you run the program you'll see what I mean. Thanks in advance, --dhk == P R O G R A M == /* Compile Command: * gcc -Wall -g3 `pkg-config --cflags --libs gtk+-2.0` -o checkBox checkBox.c */ #include stdio.h #include stdlib.h #include string.h #include gtk/gtk.h #include gdk/gdkkeysyms.h enum {COL_DESC, COL_DISABLE, COL_NUM}; void treeStore0(GtkWidget *tv); void treeView0(GtkWidget *tv); void itemToggled(GtkCellRendererToggle *cell, gchar *path, gpointer data); void destroyCb(GtkWidget *widget, gpointer data); int main(int argc, char **argv) { GtkWidget *window=NULL; GtkWidget *scrolledwindow=NULL; GtkWidget *tv=NULL; GtkTreeModel *tm=NULL; GtkTreeIter iter; gtk_init (argc, argv); window=gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(window), Tree View Test); gtk_window_set_default_size(GTK_WINDOW(window), 300, 165); g_signal_connect(G_OBJECT(window), delete_event, G_CALLBACK(destroyCb), NULL); scrolledwindow=gtk_scrolled_window_new(NULL, NULL); gtk_widget_show(scrolledwindow); gtk_container_add(GTK_CONTAINER(window), scrolledwindow); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwindow), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwindow), GTK_SHADOW_IN); gtk_widget_show(window); tv=gtk_tree_view_new(); gtk_widget_show(tv); gtk_container_add(GTK_CONTAINER(scrolledwindow), tv); treeStore0(tv); /* Make the tree store */ treeView0(tv); /* Make the tree view */ tm=gtk_tree_view_get_model(GTK_TREE_VIEW(tv)); gtk_tree_store_append(GTK_TREE_STORE(tm), iter, NULL); gtk_tree_store_set(GTK_TREE_STORE(tm), iter, 0, Click the check box, -1); gtk_tree_store_append(GTK_TREE_STORE(tm), iter, NULL); gtk_tree_store_set(GTK_TREE_STORE(tm), iter, 0, Why are all check boxes affected?, -1); gtk_tree_store_append(GTK_TREE_STORE(tm), iter, NULL); gtk_tree_store_set(GTK_TREE_STORE(tm), iter, 0, Click the check box again, -1); gtk_tree_store_append(GTK_TREE_STORE(tm), iter, NULL); gtk_tree_store_set(GTK_TREE_STORE(tm), iter, 0, Move the mouse over the other rows., -1); gtk_tree_store_append(GTK_TREE_STORE(tm), iter, NULL); gtk_tree_store_set(GTK_TREE_STORE(tm), iter, 0, Where does the mouse over event come from and why are the check boxes getting toggled?, -1); gtk_main(); return 0; } void treeStore0(GtkWidget *tv) { GtkTreeStore *ts=NULL; ts=gtk_tree_store_new(COL_NUM, /* Total number of columns */ G_TYPE_STRING, /* Description*/ G_TYPE_BOOLEAN /* Check Box - Disable item */ ); gtk_tree_view_set_model(GTK_TREE_VIEW(tv), GTK_TREE_MODEL(ts)); } void treeView0(GtkWidget *tv) { GtkCellRenderer *renderer=NULL; GtkTreeViewColumn *column=NULL; gint col_num=0; /* --- Description --- */ renderer = gtk_cell_renderer_text_new(); g_object_set(renderer, editable, TRUE, NULL); g_object_set(G_OBJECT(renderer), width-chars, 100, NULL); /* Create a Column */ column=gtk_tree_view_column_new();
pixbuf in event box in treeview
Hi, I want to put a event box in a treeview column, with a pixbuf in the event box, how to set the column render? I am confusing... Thanks. Bin ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Display grayscale image
Hello everybody, Firs of all I'm a newbye both to GTK and to this mailing list, so I apologize for the triviality of the post. I'm writing a very simple application (language: C) which should grab frames from a ccd camera and show them on the screen. The ccd images are stored as a 1D array of unsigned char, single channel grayscale images. Looking around inside the API docs, I tried to use something like: pixbuf = gtk_pixbuf_new_from_data(.); image = gtk_image_new_from_pixbuf(pixbuf); The problem is that this way, the displayed image is messed up, since (for what I understand) gtk_pixbuf_new_from_data needs the three RGB channels. Is there a easy way of displaying such an image as is (single channel) ? Or must I convert it each pixel to the a RGB triplet needed by gtk_pixbuf_new_from_data ? Any advice is very welcome. Thanks in advance to everybody. Marco -- Marco Brambilla Politecnico di Milano - Dipartimento di Fisica Piazza L. Da Vinci, 32 - 20133, Milano - Italy ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Simple question - accelerator keys
Hi there, Is there a possibility to simply bind a window-global accelerator key to a callback function? I am writing a GTK+ media player and I want to bind Left and Right arrow keys to seek media and F key to toggle fullscreen. I know that I can use gtk_widget_add_accelerator(), but then I have to create a new signal, which is, let's say, not so easy for me:) Cheers, Tom ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Check Boxes Don't Work Independently
On Thu, Aug 30, 2007 at 10:00:55AM -0400, dhk wrote: The attached and inline program Please, please, send it with something that does not wrap lines the next time, the code does not like it when it happens in the middle of a string or //-comment. Can someone explain why this happens and where the mouseover event is coming from? If you run the program you'll see what I mean. ... /* Redisplay the toggle with the appropriate state. * gtk-demo doesn't have this but it seems necessary. */ gtk_cell_renderer_toggle_set_active(cell, toggle_item); The Gtk+ demo is right and your are wrong here. Please read what I replied you the last time -- or the Gtk+ Tree View Tutorial if my gibbernglish is too hard to understand -- to grasp the concepts. Your code (equivalent to g_object_set(cell, active, TRUE, NULL);) here says: I'm setting the active property to TRUE. Therefore any time in the future, if you wish to render a cell with this renderer, render it as active. And that's exactly what happens, all cells start to be rendered as active (or inactive). You have to either use a cell data function or bind the model column to the active property. But not // Why does setting attributes cause errors and seems unnecessary anyway? //gtk_tree_view_column_set_attributes(column, renderer, activatable, TRUE, active, FALSE, NULL); like this. The arguments of gtk_tree_view_column_set_attributes() are *columns* (column numbers), not values. Since TRUE is 1 and FALSE is 0, you bind activatable to the model column 1 and active to the model column 0. Not what you want. You always want the cell renderer to be activatable, so just set g_object_set(renderer, activatable, TRUE, NULL); and you want its active property be controlled by the column DISABLE so just set gtk_tree_view_column_add_attribute(column, renderer, active, COL_DISABLE); (the meaning will be `enable' not `disable' of course, if you want the view to display the opposite of what's in the model, you have to set a cell data function -- like for essentially any other transform). Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Send mouse button press event to widget??
On Thu, Aug 30, 2007 at 05:24:21AM -0700, eminemence wrote: I am creating a virtual cursor on a web page and want to simulate the left click of the mouse button when the user presses the enter button. So I tried even using the gdk_event_put on the global window itself,assuming the event would find it's way to the control under the cursor. The gdk_event_put has not been successful,so what is the way to achieve this? I don't recall a working example now (the Gtk+ source code has some though), but: - create the event with gdk_event_new() - fill the fields - cursor position (in GdkWindow coordinates) can be obtained with gdk_window_get_pointer() - window fields have to be g_object_ref()ed IIRC as something unrefs them later - send_event should be TRUE - other information can be obtained from the original event or other means - send the event with gtk_widget_event() - free event - remember if you send a button presses and no button releases, widgets can get confused Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: pixbuf in event box in treeview
On Thu, Aug 30, 2007 at 09:59:33PM +0800, Binary Chen wrote: I want to put a event box in a treeview column, with a pixbuf in the event box, how to set the column render? Cell renderers are not widgets, so this is impossible (== does not make sense). In some cases you can use (or abuse) the `activate' mechanism, subclass a cell renderer class and and override the activate() virtual method. But IIRC only button press events are delivered this way. So generally it will be probably necessary to track the events in the whole tree view and use the provided helper functions to find the cell corresponding to the event's coordinates. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
using gtkprint for images
I just took a first serious look at the gtkprint API. I must say it works very nicely and is quite easy to learn, at least as regards printing text. My first problem: I have a window displaying the content of a PNG file, and I'd like to offer the option of printing the PNG. How to do this? I tried connecting the begin_print signal to this callback (I've stripped out several checks for quick legibility): static void begin_image_print (GtkPrintOperation *op, GtkPrintContext *context, char *pngname) { cairo_surface_t *cs; cairo_t *cr; cs = cairo_image_surface_create_from_png(pngname); cr = cairo_create(cs); gtk_print_context_set_cairo_context(context, cr, 72, 72); gtk_print_operation_set_n_pages(op, 1); } By running a verbose version of the above I've verified that cairo is happily creating a 640x480 surface of type CAIRO_FORMAT_ARGB32 based on the PNG file, and successfully making a cairo_t out of it. But then I'm not sure what, if anything, to put in a callback for the draw_page signal: it sort of seems like there should be nothing left to do. I tried just making the callback just a stub that prints got draw_page. But I get a blank PDF on output. Suggestions gratefully received. -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Setting treeview column width
On Thu, 30 Aug 2007, Binary Chen wrote: With following code, I still can't make a fixed sized treeview column, the column's width is large even after I have set its size, whats wrong with it? Any other thing affect it? column = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(column, _(Name)); gtk_tree_view_column_set_fixed_width(column, 3); gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_FIXED); I believe you want to swap the last 2 lines. gtk_tree_view_column_set_fixed_width() doesn't do anything unless the column has sizing type GTK_TREE_VIEW_COLUMN_FIXED, which it doesn't at that point in execution. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: pixbuf in event box in treeview
On Thu, 2007-08-30 at 19:06 +0200, David Nečas (Yeti) wrote: On Thu, Aug 30, 2007 at 09:59:33PM +0800, Binary Chen wrote: I want to put a event box in a treeview column, with a pixbuf in the event box, how to set the column render? Cell renderers are not widgets, so this is impossible (== does not make sense). In some cases you can use (or abuse) the `activate' mechanism, subclass a cell renderer class and and override the activate() virtual method. But IIRC only button press events are delivered this way. So generally it will be probably necessary to track the events in the whole tree view and use the provided helper functions to find the cell corresponding to the event's coordinates. Yeti Thanks, you mean if i derive a class from pixbuf cell renderer, and implement the activate() method, then if mouse click the image which is rendered by the renderer, the activate() will be get called? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: pixbuf in event box in treeview
On Thu, 2007-08-30 at 19:06 +0200, David Nečas (Yeti) wrote: On Thu, Aug 30, 2007 at 09:59:33PM +0800, Binary Chen wrote: I want to put a event box in a treeview column, with a pixbuf in the event box, how to set the column render? Cell renderers are not widgets, so this is impossible (== does not make sense). In some cases you can use (or abuse) the `activate' mechanism, subclass a cell renderer class and and override the activate() virtual method. But IIRC only button press events are delivered this way. So generally it will be probably necessary to track the events in the whole tree view and use the provided helper functions to find the cell corresponding to the event's coordinates. Yeti And an alternative to me is embedded a button in a treeview column, but I also don't know how to do... no renderer available. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: elastic tabstops implemented for GTK
On Wed, Aug 29, 2007 at 07:11:35PM +0200, Nick Gravgaard wrote: On 29/08/2007, David Nečas (Yeti) [EMAIL PROTECTED] wrote: Alex Jones wrote: I really can't wait to get this functionality, it finally puts an end to all of the nonsense over how many spaces there should be in a tab! The option to avoid tabs has been here since ever. Did it put an end to the tab size nonsense? What makes you think this option will? Because the usual way to interpret a tab character has been to place the text after it at the next tabstop where the tabstop was a multiple of N. Elastic tabstops don't work like that all. Please read the website linked to in an earlier post. You missed the point. It is irrelevant *what* it does. The primary problem is the undefined meaning of tabs. How inventing yet another option solves this problem? Not at all, it makes it worse. Unless, of cousre, you are going to eliminate all people who use tabs differently than you... Yeti -- http://gwyddion.net/ ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: elastic tabstops implemented for GTK
On 30/08/2007, Kalle Vahlman [EMAIL PROTECTED] wrote: 2007/8/29, Nick Gravgaard [EMAIL PROTECTED]: [snip] But wouldn't it be nice to have the choice over how big your indentation is without forcing it on anyone else? OTOH you are forcing anyone wishing to look at your code to have a suitable viewer. If you think about how source code is viewed these days, the range of viewers does not include only editors. I see code in emails, different web applications, on the command line (grep, diff, etc) and so on. True, but code often looks wrong on different viewers anyway. I've seen code displayed using proportional fonts in web browsers/email clients which screws up space and tab aligning, and then there's the problem where Unix terminals assume tabs to be 8 characters wide, but Windows assumes 4. To me it looks like an attempt to force everyone to use gedit (or whatever chosen editor) to display the text. I have to start somewhere and I chose gedit and GTK. I intend to port this to other platforms/editors I suppose this would include the tools mentioned above right?-) See my point above. If you don't want to save files with tabs in and be able to manipulate your text outside the editor etc you can always just use elastic tabstops in editors that support them and make sure they export files using spaces. In effect, this is the only realistic way to work in my opinion. But then this cool notion becomes simply yet another indentation technique for writing code (which doesn't work over saves), not the silver bullet it is meant to be... IMO it's still better than anything I've seen in exisiting editors... ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Composited environments -- disable GTK double buffering?
Hello, I have been experimenting with a simple GTK program, where I turn off double buffering and drawing works fine (well, or almost fine) under composited environment. Maybe GTK double buffering could be disabled by default (fixing issues if any) on composited environments? I'm not a big expert of these, but under my impression, compositing manager (like Compiz) first lets an application to do the drawing to the off-screen pixmap, then transfers that data to OpenGL texture. If we set up everything correctly, no double buffering on GTK side should be needed. Best regards, Vytas ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: elastic tabstops implemented for GTK
2007/8/30, Nick Gravgaard [EMAIL PROTECTED]: On 30/08/2007, Kalle Vahlman [EMAIL PROTECTED] wrote: 2007/8/29, Nick Gravgaard [EMAIL PROTECTED]: [snip] But wouldn't it be nice to have the choice over how big your indentation is without forcing it on anyone else? OTOH you are forcing anyone wishing to look at your code to have a suitable viewer. If you think about how source code is viewed these days, the range of viewers does not include only editors. I see code in emails, different web applications, on the command line (grep, diff, etc) and so on. True, but code often looks wrong on different viewers anyway. That's not a good reason for anything... I've seen code displayed using proportional fonts in web browsers/email clients which screws up space and tab aligning, and then there's the problem where Unix terminals assume tabs to be 8 characters wide, but Windows assumes 4. Spaces are more robust as they only have the propotional/fixed-width problem, which is visually less distinct than jumping between tab stops or different length of tab stops. If you don't want to save files with tabs in and be able to manipulate your text outside the editor etc you can always just use elastic tabstops in editors that support them and make sure they export files using spaces. In effect, this is the only realistic way to work in my opinion. But then this cool notion becomes simply yet another indentation technique for writing code (which doesn't work over saves), not the silver bullet it is meant to be... IMO it's still better than anything I've seen in exisiting editors... Sure it is, but if you market it as The solution to the tabs-versus-spaces issue, you have to provide more than just a new way of interpeting tabs when you write code. Since the different viewers showing different levels of broken alignment is exactly the tabs-versus-spaces issue, and in these Web2.0 days it's no longer an issue of preference and/or editors, it's about how everybody sees the code. So, to my eye, the two solutions are: 1) patch the world to understand elastic tabstops 2) use spaces and bare with the propotional/fixed-width issue Whatever each individual's editor does before outputting the code is irrelevant, but the end result should be something that is world-readable. *If* people care enough about seing relatively sensible code listings everywhere. I doubt people do though, and there will be many adopters for this fancy indentation system :) -- Kalle Vahlman, [EMAIL PROTECTED] Powered by http://movial.fi Interesting stuff at http://syslog.movial.fi ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
gtk-builder-convert
Hi, As we are preparing in integration of GNOME 2.20 for Solaris and came across this new binary, gtk-builder-convert in the gtk+-2.0 version 2.11.6. What is the interface stability of this program? By this I mean will it be supported and remained around much the same way as gdk-pixbuf-csource ? Thanks, -Ghee ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: GTK+ Theming improvements
2007/8/30, Milosz Derezynski [EMAIL PROTECTED]: The point about spatial awareness hit it right on the spot really; just as a throw in, i think something like this here should (should as in, it should be a goal to make it possible) doable: http://futurepast.free.fr/buttonbox.png That would actually rock for the native Mac OS X theme (we need a theme for the ongoing port though), since the tabs used in cocoa behave exactly like that. It would allow to improve the highlight for multiple selections as well. Do we need to break Gtk to achieve this? -- Un saludo, Alberto Ruiz ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list