Skip to content

Commit

Permalink
commander: Add a frame around the popup window
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Aug 4, 2012
1 parent aee2548 commit ace1299
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions commander/src/commander-plugin.c
Expand Up @@ -483,6 +483,7 @@ reset_file_items (GtkListStore *store)
static void
create_panel (void)
{
GtkWidget *frame;
GtkWidget *box;
GtkWidget *scroll;
GtkTreeViewColumn *col;
Expand All @@ -503,8 +504,12 @@ create_panel (void)
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",
Expand Down Expand Up @@ -548,7 +553,7 @@ create_panel (void)

on_entry_text_notify (G_OBJECT (plugin_data.entry), NULL, NULL);

gtk_widget_show_all (box);
gtk_widget_show_all (frame);
}

static void
Expand Down

0 comments on commit ace1299

Please sign in to comment.