Re: Title on gnome-shell

2018-02-28 Thread Takao Fujiwara
, 2018 at 1:59 PM, Takao Fujiwara <fujiw...@redhat.com> wrote: How can I set the title name of GtkWindow on gnome-shell? gtk_window_set_title(), but that's probably not what you mean - there are few places where gnome-shell uses the window title, in general the application name is more pro

Title on gnome-shell

2018-02-27 Thread Takao Fujiwara
How can I set the title name of GtkWindow on gnome-shell? It seems Alt-Tab window and application list on gnome-shell shows the prgname but not application name. int main (int argc, char* argv[]) { GtkWidget *window; g_set_application_name ("Title"); gtk_init (, ); window =

Re: GDBus signal reaches after GDBus method returns

2017-08-30 Thread Takao Fujiwara
On 08/30/17 20:37, Bastien Nocera-san wrote: On Wed, 2017-08-30 at 20:18 +0900, Takao Fujiwara wrote: Do you have any ideas how to receive a GDBus signal before the GDBus method returns? When I run the following program, the return of "KeyEvent" is always output faster than "Com

GDBus signal reaches after GDBus method returns

2017-08-30 Thread Takao Fujiwara
Do you have any ideas how to receive a GDBus signal before the GDBus method returns? When I run the following program, the return of "KeyEvent" is always output faster than "CommitText" signal in the client program. Or do you have any ideas to know if the returned GDBus method emitted a GDBus

Re: Get GtkWindow focus from XI Event

2017-05-12 Thread Takao Fujiwara
Thank you very much. Your reply fixes my problem. I thought your suggestion to use gdk_x11_display_get_user_time() + a time lag previously instead of the event time by mistake. Fujiwara On 05/12/17 00:35, Rui Tiago Cação Matos-san wrote: Hi, On Thu, May 11, 2017 at 2:24 PM, Takao Fujiwara

Get GtkWindow focus from XI Event

2017-05-11 Thread Takao Fujiwara
I have a focus problem with the attached program. 1. When press Ctrl-Alt-v, my window is launched with the keyboard focus. 2. Click [x] button and close the window. 3. When press Ctrl-Alt-v again, my window is launched but the focus status is different by desktop. XFCE4 desktop can get the

Re: Get GtkWindow focus from XI Event

2017-05-11 Thread Takao Fujiwara
Thanks for your reply. Let me send the question to gtk-devel-l...@gnome.org again. On 05/11/17 21:19, Emmanuele Bassi-san wrote: You likely want to ask on gtk-devel-l...@gnome.org and/or on the #gtk+ IRC channel on irc.gnome.org. Ciao, Emmanuele. On 11 May 2017 at 13:15, Takao Fujiwara

Re: Get GtkWindow focus from XI Event

2017-05-11 Thread Takao Fujiwara
On 05/11/17 20:55, Takao Fujiwara-san wrote: I have a focus problem with the attached program. 1. When press Ctrl-Alt-v, my window is launched with the keyboard focus. 2. Click [x] button and close the window. 3. When press Ctrl-Alt-v again, my window is launched but the focus status

Get GtkWindow focus from XI Event

2017-05-11 Thread Takao Fujiwara
I have a focus problem with the attached program. 1. When press Ctrl-Alt-v, my window is launched with the keyboard focus. 2. Click [x] button and close the window. 3. When press Ctrl-Alt-v again, my window is launched but the focus status is different by desktop. XFCE4 desktop can get the

Re: Custom GtkHeaderBar

2017-04-17 Thread Takao Fujiwara
On 04/18/17 02:52, cecas...@aol.com-san wrote: If I use gtk_style_context_add_class(context, "header"); As I replied, I fixed that problem to call this.get_style_context().remove_class("csd") after set_titlebar(header) is called. Fujiwara The background drawn to the event box window is

Re: Custom GtkHeaderBar

2017-04-16 Thread Takao Fujiwara
I think your example still draws the green color of the hbox but not the theme color of GtkHeaderBar. I also think the menu and headerbar's colors are different. Fujiwara On 04/16/17 04:25, cecas...@aol.com-san wrote: I gave it another try and "header" gtk_style_context_add_class() is

Re: Custom GtkHeaderBar

2017-04-15 Thread Takao Fujiwara
On 04/15/17 04:36, cecas...@aol.com-san wrote: I suspect set_titlebar(header); is causing the problem. If you remove that, then you will have a box that you place in the main window. If it is a header bar box it will be below the titlebar. The box itself is just doing the layout so it uses

Re: Custom GtkHeaderBar

2017-04-15 Thread Takao Fujiwara
On 04/16/17 00:05, Takao Fujiwara-san wrote: On 04/15/17 04:36, cecas...@aol.com-san wrote: A little limited here since I don't have a C# setup and am using GTK3.18 which doesn't have all the 3.22 functions. What OS are you using and how did you setup C# for programming with? Sorry, ignored

Re: Custom GtkHeaderBar

2017-04-15 Thread Takao Fujiwara
On 04/15/17 04:36, cecas...@aol.com-san wrote: A little limited here since I don't have a C# setup and am using GTK3.18 which doesn't have all the 3.22 functions. What OS are you using and how did you setup C# for programming with? Sorry, ignored this question. Now I understood what you

Re: Custom GtkHeaderBar

2017-04-13 Thread Takao Fujiwara
Thanks for the example. But I'd pull the CSS color of GtkHeaderBar to follow the theme colors instead of the hardcoded draw_box(). As I attached in the previous mail, calling gtk_widget_class_set_css_name(class, "headerbar") can set the themed background-color but the behavior is different

Re: Custom GtkHeaderBar

2017-04-12 Thread Takao Fujiwara
I could resolve this issue to call this.get_style_context().remove_class("csd") after set_titlebar(header) is called. But not sure why I have to remove "csd" class while it's a custom header. Fujiwara On 04/11/17 21:33, Takao Fujiwara-san wrote: I'd like to create a

Custom GtkHeaderBar

2017-04-11 Thread Takao Fujiwara
I'd like to create a custom GtkHeaderBar in GTK 3.22. If I use GtkBox as the header, it can draw the background color. If I use a class inherited from GtkBox, it draws the transparent color. Seems GtkBox uses rgba from ".titlebar:not(headerbar)" of gtk-contained.css:1736 but the inherited class

Re: Handling emoji presentation 0xfe0e and 0xfe0f

2017-04-10 Thread Takao Fujiwara
I filed a bug for this. https://bugzilla.gnome.org/show_bug.cgi?id=781123 On 04/06/17 21:39, Takao Fujiwara-san wrote: 0xfe0e and 0xfe0f are emoji presentation of emoji text mode and color mode. [1] "Noto Color Emoji" font does not include 0xfe0f so current Pango draws th

Handling emoji presentation 0xfe0e and 0xfe0f

2017-04-06 Thread Takao Fujiwara
0xfe0e and 0xfe0f are emoji presentation of emoji text mode and color mode. [1] "Noto Color Emoji" font does not include 0xfe0f so current Pango draws the sequence of "0x0023 fe0f 20e3" as two characters since fe0f is included in "DejaVu" font. I think fe0e and fe0f can be handled by Pango

Field descriptions are missing when header files are included each other.

2015-07-09 Thread Takao Fujiwara
I have ibusproperty.h and ibusproplist.h and the header files are included each other. If the structure has a member, gtkdoc-mkdb outputs a warning: ./a/ibusproplist.h:49: warning: Field description for IBusPropList::properties is missing in source code comment block. I prepared 4 files for

Field description is missing in source code comment block.

2015-07-03 Thread Takao Fujiwara
When I try to build xml, I got the following error about IBusPropList::properties: ../../../src/ibusproplist.h:73: warning: Field description for IBusPropList::properties is missing in source code comment block. https://github.com/ibus/ibus/blob/master/src/ibusproplist.h#L73 /** *

Re: GtkGrid sets no expand with homogeneous

2014-04-04 Thread Takao Fujiwara
OK, I resolved my problem to set halign and valign to GTK_ALIGN_START. (04/02/14 19:40), Takao Fujiwara-san wrote: I'd like to port GtkTable to GtkGrid but my cells show big widths. I have no problem with GtkTable. The following is the test code. Could you help me to set no expanded cells

Re: GtkGrid sets no expand with homogeneous

2014-04-04 Thread Takao Fujiwara
OK, I resolved my problem to set halign and valign to GTK_ALIGN_START. (04/03/14 16:26), Takao Fujiwara-san wrote: I'd like to port GtkTable to GtkGrid but my cells show big widths. I have no problem with GtkTable. The following is the test code. Could you help me to set no expanded cells

GtkGrid sets no expand with homogeneous

2014-04-03 Thread Takao Fujiwara
I'd like to port GtkTable to GtkGrid but my cells show big widths. I have no problem with GtkTable. The following is the test code. Could you help me to set no expanded cells with homogeneous in GtkGrid? scrolled = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_size_request

GtkGrid sets no expand with homogeneous

2014-04-02 Thread Takao Fujiwara
I'd like to port GtkTable to GtkGrid but my cells show big widths. I have no problem with GtkTable. The following is the test code. Could you help me to set no expanded cells with homogeneous in GtkGrid? scrolled = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_size_request

Re: GtkGrid sets no expand with homogeneous

2014-04-02 Thread Takao Fujiwara
(04/02/14 20:43), Stefan Salewski-san wrote: My guess is that you should set your buttons “expand” property to false. The expand property does not effect if homogeneous is TRUE in my test. And the expand property is FALSE in GtkWidget by default. ___