[gnome-software] Don't connect to signals of the previously removed widgets
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Don't connect to signals of the previously removed widgets
- Date: Sat, 1 Mar 2014 14:36:11 +0000 (UTC)
commit 65181166cbc355fd91121afb568c79d50b9eca15
Author: Richard Hughes <richard hughsie com>
Date: Sat Mar 1 14:35:57 2014 +0000
Don't connect to signals of the previously removed widgets
src/gs-shell-details.c | 15 ---------------
src/gs-shell-updates.c | 15 ---------------
2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index c792cc5..00236e2 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -1223,17 +1223,6 @@ gs_shell_details_app_history_button_cb (GtkWidget *widget, GsShellDetails *shell
}
/**
- * gs_shell_details_button_close_cb:
- **/
-static void
-gs_shell_details_button_close_cb (GtkWidget *widget, GsShellDetails *shell_details)
-{
- GsShellDetailsPrivate *priv = shell_details->priv;
- widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "dialog_history"));
- gtk_widget_hide (widget);
-}
-
-/**
* gs_shell_details_list_header_func
**/
static void
@@ -1388,10 +1377,6 @@ gs_shell_details_setup (GsShellDetails *shell_details,
g_signal_connect (widget, "clicked",
G_CALLBACK (gs_shell_details_website_cb),
shell_details);
- widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_history_close"));
- g_signal_connect (widget, "clicked",
- G_CALLBACK (gs_shell_details_button_close_cb),
- shell_details);
/* setup history window */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "dialog_history"));
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index ea8e162..efff28a 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -648,17 +648,6 @@ gs_shell_updates_list_header_func (GtkListBoxRow *row,
}
/**
- * gs_shell_updates_button_close_cb:
- **/
-static void
-gs_shell_updates_button_close_cb (GtkWidget *widget, GsShellUpdates *shell_updates)
-{
- GsShellUpdatesPrivate *priv = shell_updates->priv;
- widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "dialog_update"));
- gtk_widget_hide (widget);
-}
-
-/**
* gs_shell_updates_refresh_cb:
**/
static void
@@ -1108,10 +1097,6 @@ gs_shell_updates_setup (GsShellUpdates *shell_updates,
g_signal_connect (widget, "clicked", G_CALLBACK (gs_shell_updates_button_update_all_cb),
shell_updates);
/* setup update details window */
- widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_update_close"));
- g_signal_connect (widget, "clicked",
- G_CALLBACK (gs_shell_updates_button_close_cb),
- shell_updates);
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_refresh"));
g_signal_connect (widget, "clicked",
G_CALLBACK (gs_shell_updates_button_refresh_cb),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]