[geany/geany-plugins] ace129: commander: Add a frame around the popup window

Colomban Wendling git-noreply at xxxxx
Sat Aug 4 15:08:39 UTC 2012


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 04 Aug 2012 15:08:39
Commit:      ace1299064f842e4f2233a540515c9f61d0894a1
             https://github.com/geany/geany-plugins/commit/ace1299064f842e4f2233a540515c9f61d0894a1

Log Message:
-----------
commander: Add a frame around the popup window


Modified Paths:
--------------
    commander/src/commander-plugin.c

Modified: commander/src/commander-plugin.c
9 files changed, 7 insertions(+), 2 deletions(-)
===================================================================
@@ -483,6 +483,7 @@ enum {
 static void
 create_panel (void)
 {
+  GtkWidget          *frame;
   GtkWidget          *box;
   GtkWidget          *scroll;
   GtkTreeViewColumn  *col;
@@ -503,8 +504,12 @@ enum {
   g_signal_connect (plugin_data.panel, "key-press-event",
                     G_CALLBACK (on_panel_key_press_event), NULL);
   
+  frame = gtk_frame_new (NULL);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
+  gtk_container_add (GTK_CONTAINER (plugin_data.panel), frame);
+  
   box = gtk_vbox_new (FALSE, 0);
-  gtk_container_add (GTK_CONTAINER (plugin_data.panel), box);
+  gtk_container_add (GTK_CONTAINER (frame), box);
   
   plugin_data.entry = gtk_entry_new ();
   g_signal_connect (plugin_data.entry, "notify::text",
@@ -548,7 +553,7 @@ enum {
   
   on_entry_text_notify (G_OBJECT (plugin_data.entry), NULL, NULL);
   
-  gtk_widget_show_all (box);
+  gtk_widget_show_all (frame);
 }
 
 static void


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Plugins-Commits mailing list