Re: [Denemo-devel] Tooltips - what am I doing wrong?
On Sat, 2015-11-28 at 12:00 +, gtk-app-devel-list-requ...@gnome.org wrote: > Date: Fri, 27 Nov 2015 20:42:25 +0100 (CET) > From: Lucas Levrel> To: gtk-app-devel-list@gnome.org > Subject: Re: [Denemo-devel] Tooltips - what am I doing wrong? > Message-ID: > Content-Type: TEXT/PLAIN; charset=ISO-8859-15; format=flowed > > Le 27 novembre 2015, John Coppens a ?crit : > > 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 right-clicking on the canvas. > > Right. > > > I also suspect that the complexities arise from detaching menus from > > the main menu bar, not from the right-click, which is already a > > pop-up > > Thanks for clarifying. This said, I don't see much difference between > e.g. > the sub-menus of a menu and those of the right-click pop-up. Never > mind. And, indeed, it is particularly in the sub-sub-sub menus where it is very handy to tear-off a menu to be used for a few minutes. I notice that gimp has no tooltips on its menu items - perhaps they were forced to abandon them when the Gtk developers decided to make them pop up uncontrollably fast as you move down a menu... I've worked around this "feature" in Denemo now by allowing people to press the f1 key while hovering on a menu item to bring up the (otherwise disabled) tooltip. Richard > > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Can I get widget change background color of simple way in modern gtk3?
Hello. Old day. I should have done writing code of simple one line if I demanded the change of the background color But it does not seem to be so now. and nothing (simple) example code. I see gtk3-demo. Using callback and other. not one line. gtk_widget_modify_bg(window, GTK_STATE_NORMAL, ); -> is deprecated gtk_widget_override_background_color(window, GTK_STATE_NORMAL, ); -> is deprecated Probably modern way is CSS Style. But nothing example. and ways seem to be different until now. Can I get modern gtk3 example? Can I change background color by writing code of simple one line in modern gtk3? Thanks. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Can I get widget change background color of simple way in modern gtk3?
Hi; this question has been asked and answered multiple times on this mailing list. You should look at the archives on: https://mail.gnome.org/archives/gtk-app-devel-list/ Ciao, Emmanuele. On 29 November 2015 at 00:26, michinari.nukazawawrote: > Hello. > > Old day. > I should have done writing code of simple one line if I demanded the change > of the background color > But it does not seem to be so now. > and nothing (simple) example code. > I see gtk3-demo. Using callback and other. not one line. > > gtk_widget_modify_bg(window, GTK_STATE_NORMAL, ); > -> is deprecated > > gtk_widget_override_background_color(window, GTK_STATE_NORMAL, ); > -> is deprecated > > Probably modern way is CSS Style. > But nothing example. > and ways seem to be different until now. > > > Can I get modern gtk3 example? > Can I change background color by writing code of simple one line in modern > gtk3? > > Thanks. > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- https://www.bassi.io [@] ebassi [@gmail.com] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Can I get widget change background color of simple way in modern gtk3?
I understand. > this question has been asked and answered multiple times on this mailing list. Sorry. Indeed this is because it was unbelievable that. That much became so difficult from simple. I see useful example. http://www.gtkforums.com/viewtopic.php?f=3=988=72088=GTK3+with+CSS#p72088 I intend to use this code. === GtkCssProvider *provider; provider = gtk_css_provider_new (); GdkDisplay *display; GdkScreen *screen; display = gdk_display_get_default (); screen = gdk_display_get_default_screen (display); gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); gtk_css_provider_load_from_data (GTK_CSS_PROVIDER(provider), " GtkWindow {\n" " background-color: rgb (103, 103, 103);\n" "}\n", -1, NULL); g_object_unref (provider); === Thanks. On 2015年11月29日 10:02, Emmanuele Bassi wrote: Hi; this question has been asked and answered multiple times on this mailing list. You should look at the archives on: https://mail.gnome.org/archives/gtk-app-devel-list/ Ciao, Emmanuele. On 29 November 2015 at 00:26, michinari.nukazawawrote: Hello. Old day. I should have done writing code of simple one line if I demanded the change of the background color But it does not seem to be so now. and nothing (simple) example code. I see gtk3-demo. Using callback and other. not one line. gtk_widget_modify_bg(window, GTK_STATE_NORMAL, ); -> is deprecated gtk_widget_override_background_color(window, GTK_STATE_NORMAL, ); -> is deprecated Probably modern way is CSS Style. But nothing example. and ways seem to be different until now. Can I get modern gtk3 example? Can I change background color by writing code of simple one line in modern gtk3? Thanks. ___ 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