mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
filechooser: Use GtkButton's icon-name property
This commit is contained in:
parent
5147ea96e0
commit
01723fa02f
@ -484,17 +484,12 @@ setup_search (GtkFileChooserDialog *dialog)
|
||||
if (use_header)
|
||||
{
|
||||
GtkWidget *button;
|
||||
GtkWidget *image;
|
||||
GtkWidget *header;
|
||||
|
||||
button = gtk_toggle_button_new ();
|
||||
gtk_widget_set_focus_on_click (button, FALSE);
|
||||
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
|
||||
image = gtk_image_new_from_icon_name ("edit-find-symbolic", GTK_ICON_SIZE_MENU);
|
||||
gtk_container_add (GTK_CONTAINER (button), image);
|
||||
gtk_style_context_add_class (gtk_widget_get_style_context (button), "image-button");
|
||||
gtk_style_context_remove_class (gtk_widget_get_style_context (button), "text-button");
|
||||
gtk_widget_show (image);
|
||||
gtk_button_set_icon_name (GTK_BUTTON (button), "edit-find-symbolic");
|
||||
gtk_widget_show (button);
|
||||
|
||||
header = gtk_dialog_get_header_bar (GTK_DIALOG (dialog));
|
||||
|
@ -69,14 +69,8 @@
|
||||
<property name="tooltip-text" translatable="yes">Create Folder</property>
|
||||
<property name="use-underline">1</property>
|
||||
<property name="popover">new_folder_popover</property>
|
||||
<property name="icon-name">folder-new-symbolic</property>
|
||||
<signal name="notify::active" handler="new_folder_popover_active"/>
|
||||
<child>
|
||||
<object class="GtkImage">
|
||||
<property name="visible">1</property>
|
||||
<property name="icon-name">folder-new-symbolic</property>
|
||||
<property name="icon-size">1</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="fill">0</property>
|
||||
|
Loading…
Reference in New Issue
Block a user