forked from AuroraMiddleware/gtk
Make GtkFileChooserButton behave as expected when expanding
This commit is contained in:
parent
5400ec8168
commit
9dfeee8127
@ -452,7 +452,8 @@ gtk_file_chooser_button_init (GtkFileChooserButton *button)
|
||||
priv->label = gtk_label_new (_(FALLBACK_DISPLAY_NAME));
|
||||
gtk_label_set_ellipsize (GTK_LABEL (priv->label), PANGO_ELLIPSIZE_END);
|
||||
gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
|
||||
gtk_container_add (GTK_CONTAINER (box), priv->label);
|
||||
gtk_box_pack_start (GTK_BOX (box), priv->label, TRUE, TRUE, 0);
|
||||
//gtk_container_add (GTK_CONTAINER (box), priv->label);
|
||||
gtk_widget_show (priv->label);
|
||||
|
||||
sep = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
|
||||
|
@ -327,7 +327,7 @@ main (int argc,
|
||||
g_signal_connect (chooser, "selection-changed", G_CALLBACK (chooser_selection_changed_cb), NULL);
|
||||
g_signal_connect (chooser, "file-activated", G_CALLBACK (chooser_file_activated_cb), NULL);
|
||||
g_signal_connect (chooser, "update-preview", G_CALLBACK (chooser_update_preview_cb), NULL);
|
||||
gtk_container_add (GTK_CONTAINER (hbox), chooser);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), chooser, TRUE, TRUE, 0);
|
||||
|
||||
button = gtk_button_new_from_stock (GTK_STOCK_PROPERTIES);
|
||||
g_signal_connect (button, "clicked", G_CALLBACK (properties_button_clicked_cb), chooser);
|
||||
@ -357,7 +357,7 @@ main (int argc,
|
||||
g_signal_connect (chooser, "selection-changed", G_CALLBACK (chooser_selection_changed_cb), NULL);
|
||||
g_signal_connect (chooser, "file-activated", G_CALLBACK (chooser_file_activated_cb), NULL);
|
||||
g_signal_connect (chooser, "update-preview", G_CALLBACK (chooser_update_preview_cb), NULL);
|
||||
gtk_container_add (GTK_CONTAINER (hbox), chooser);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), chooser, TRUE, TRUE, 0);
|
||||
|
||||
button = gtk_button_new_from_stock (GTK_STOCK_PROPERTIES);
|
||||
g_signal_connect (button, "clicked", G_CALLBACK (properties_button_clicked_cb), chooser);
|
||||
|
Loading…
Reference in New Issue
Block a user