printers: Connect signals in swapped form
This commit is contained in:
parent
d4adf67549
commit
2c28987e41
2 changed files with 8 additions and 13 deletions
|
@ -63,10 +63,8 @@ struct _PpDetailsDialog {
|
|||
G_DEFINE_TYPE (PpDetailsDialog, pp_details_dialog, GTK_TYPE_DIALOG)
|
||||
|
||||
static void
|
||||
printer_name_changed (GtkEditable *editable,
|
||||
gpointer user_data)
|
||||
printer_name_changed (PpDetailsDialog *self)
|
||||
{
|
||||
PpDetailsDialog *self = (PpDetailsDialog *) user_data;
|
||||
const gchar *name;
|
||||
g_autofree gchar *title = NULL;
|
||||
|
||||
|
@ -128,8 +126,7 @@ get_ppd_names_cb (PPDName **names,
|
|||
}
|
||||
|
||||
static void
|
||||
search_for_drivers (GtkButton *button,
|
||||
PpDetailsDialog *self)
|
||||
search_for_drivers (PpDetailsDialog *self)
|
||||
{
|
||||
gtk_stack_set_visible_child_name (self->printer_model_stack, "loading");
|
||||
gtk_widget_set_sensitive (self->search_for_drivers_button, FALSE);
|
||||
|
@ -195,8 +192,7 @@ get_all_ppds_async_cb (PPDList *ppds,
|
|||
}
|
||||
|
||||
static void
|
||||
select_ppd_in_dialog (GtkButton *button,
|
||||
PpDetailsDialog *self)
|
||||
select_ppd_in_dialog (PpDetailsDialog *self)
|
||||
{
|
||||
g_autofree gchar *device_id = NULL;
|
||||
g_autofree gchar *manufacturer = NULL;
|
||||
|
@ -244,8 +240,7 @@ select_ppd_in_dialog (GtkButton *button,
|
|||
}
|
||||
|
||||
static void
|
||||
select_ppd_manually (GtkButton *button,
|
||||
PpDetailsDialog *self)
|
||||
select_ppd_manually (PpDetailsDialog *self)
|
||||
{
|
||||
GtkFileFilter *filter;
|
||||
GtkWidget *dialog;
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="halign">fill</property>
|
||||
<property name="width_request">320</property>
|
||||
<signal name="changed" handler="printer_name_changed"/>
|
||||
<signal name="changed" handler="printer_name_changed" object="PpDetailsDialog" swapped="yes"/>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left-attach">1</property>
|
||||
|
@ -188,7 +188,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Search for Drivers</property>
|
||||
<property name="halign">fill</property>
|
||||
<signal name="clicked" handler="search_for_drivers"/>
|
||||
<signal name="clicked" handler="search_for_drivers" object="PpDetailsDialog" swapped="yes"/>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
|
@ -197,7 +197,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Select from Database…</property>
|
||||
<property name="halign">fill</property>
|
||||
<signal name="clicked" handler="select_ppd_in_dialog"/>
|
||||
<signal name="clicked" handler="select_ppd_in_dialog" object="PpDetailsDialog" swapped="yes"/>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
|
@ -206,7 +206,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Install PPD File…</property>
|
||||
<property name="halign">fill</property>
|
||||
<signal name="clicked" handler="select_ppd_manually"/>
|
||||
<signal name="clicked" handler="select_ppd_manually" object="PpDetailsDialog" swapped="yes"/>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue