1

I've created a very simple chat (one to one chat) which works by just sending TCP-packets. The way it works at the moment is just by sending and receiving messages in the terminal. I would like to create a simple GUI that shows dialogs (modal i think it's called) in Gnome like in this picture:

Gnome Modal Dialog Chat

In other words just an application that runs in the background that pops up a modal if you receive a message, and then you can type in an answer and just press enter to send it.

Does anyone have an idea how to do this? Any examples of this online?

  • https://extensions.gnome.org/extension/214/pidgin-conversation-integration/ – Rupesh Feb 23 '15 at 15:43
  • 1
    Potential explanation of the above: what you posted isn't a modal dialog, it's a GNOME Shell feature of sorts. The extension @rups linked is another such plugin. You can use its code to model your chat protocol. If you want to create a legitimate client, however, you'll need to find a way to get your network connections and GUI threads in sync. You can investigate [GIO's networking facilities](https://developer.gnome.org/gio/stable/highlevel-socket.html) (GIO is part of GLib, which GTK+ uses) or roll your own thing. I'm unfamiliar with doing this in C; sorry. Good luck! – andlabs Feb 24 '15 at 08:08

0 Answers0