Commit af6e2feb authored by Marek Kašík's avatar Marek Kašík

printers: Remove Printer URI field + little tweak of row spacing

parent 21c715ed
......@@ -135,7 +135,6 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
gchar *reason = NULL;
gchar **printer_reasons = NULL;
gchar *description = NULL;
gchar *device_uri = NULL;
gchar *location = NULL;
gchar *status = NULL;
int printer_state = 3;
......@@ -205,8 +204,6 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
{
if (g_strcmp0 (priv->dests[id].options[i].name, "printer-location") == 0)
location = g_strdup (priv->dests[id].options[i].value);
else if (g_strcmp0 (priv->dests[id].options[i].name, "device-uri") == 0)
device_uri = g_strdup (priv->dests[id].options[i].value);
else if (g_strcmp0 (priv->dests[id].options[i].name, "printer-state") == 0)
printer_state = atoi (priv->dests[id].options[i].value);
else if (g_strcmp0 (priv->dests[id].options[i].name, "printer-info") == 0)
......@@ -301,18 +298,6 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
gtk_label_set_text (GTK_LABEL (widget), none);
widget = (GtkWidget*)
gtk_builder_get_object (priv->builder, "printer-URI-entry");
if (device_uri)
{
gtk_entry_set_text (GTK_ENTRY (widget), device_uri);
g_free (device_uri);
}
else
gtk_entry_set_text (GTK_ENTRY (widget), none);
widget = (GtkWidget*)
gtk_builder_get_object (priv->builder, "printer-description-label");
......@@ -343,10 +328,6 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
gtk_builder_get_object (priv->builder, "printer-location-label");
gtk_label_set_text (GTK_LABEL (widget), "");
widget = (GtkWidget*)
gtk_builder_get_object (priv->builder, "printer-URI-entry");
gtk_entry_set_text (GTK_ENTRY (widget), "");
widget = (GtkWidget*)
gtk_builder_get_object (priv->builder, "printer-disable-button");
gtk_widget_set_sensitive (widget, FALSE);
......
......@@ -76,10 +76,10 @@
<child>
<object class="GtkTable" id="table1">
<property name="visible">True</property>
<property name="n_rows">6</property>
<property name="n_rows">5</property>
<property name="n_columns">2</property>
<property name="column_spacing">10</property>
<property name="row_spacing">10</property>
<property name="row_spacing">15</property>
<child>
<object class="GtkVBox" id="vbox6">
<property name="visible">True</property>
......@@ -133,8 +133,8 @@
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
</packing>
</child>
<child>
......@@ -144,19 +144,6 @@
<property name="yalign">0</property>
<property name="label" translatable="yes">Share with these users:</property>
</object>
<packing>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="x_options">GTK_FILL</property>
<property name="y_options">GTK_FILL</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Printer URI:</property>
</object>
<packing>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
......@@ -201,20 +188,6 @@
<property name="y_options">GTK_FILL</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="printer-URI-entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">&#x25CF;</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="y_options">GTK_FILL</property>
</packing>
</child>
<child>
<object class="GtkDrawingArea" id="drawingarea1">
<property name="visible">True</property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment