[Xfce4-commits] [thunar-plugins/thunar-vcs-plugin] 03/09: Drop superfluous functions

noreply at xfce.org noreply at xfce.org
Sat Jun 2 05:09:37 CEST 2018


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository thunar-plugins/thunar-vcs-plugin.

commit 4c22f943d7ef67529d2ee6fd3e72198f0114bd83
Author: Andre Miranda <andreldm at xfce.org>
Date:   Fri Jun 1 20:28:15 2018 -0300

    Drop superfluous functions
    
    They use deprecated gtk function and don't seem
    to have any visual effect.
---
 tvp-git-helper/tgh-branch-dialog.c     |  2 --
 tvp-git-helper/tgh-dialog-common.c     | 33 --------------------------------
 tvp-git-helper/tgh-dialog-common.h     |  2 --
 tvp-git-helper/tgh-stash-dialog.c      |  2 --
 tvp-svn-helper/tsh-properties-dialog.c | 35 ----------------------------------
 5 files changed, 74 deletions(-)

diff --git a/tvp-git-helper/tgh-branch-dialog.c b/tvp-git-helper/tgh-branch-dialog.c
index 1820793..c8feb85 100644
--- a/tvp-git-helper/tgh-branch-dialog.c
+++ b/tvp-git-helper/tgh-branch-dialog.c
@@ -147,8 +147,6 @@ tgh_branch_dialog_init (TghBranchDialog *dialog)
   g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (cancel_clicked), dialog);
   gtk_widget_show (button);
 
-  tgh_make_homogeneous (dialog->checkout, dialog->create, dialog->close, dialog->cancel, NULL);
-
   gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 400);
 }
 
diff --git a/tvp-git-helper/tgh-dialog-common.c b/tvp-git-helper/tgh-dialog-common.c
index 763013f..ae659e3 100644
--- a/tvp-git-helper/tgh-dialog-common.c
+++ b/tvp-git-helper/tgh-dialog-common.c
@@ -48,36 +48,3 @@ close_response (GtkDialog *dialog, gint response, gpointer user_data)
 {
   gtk_widget_destroy (GTK_WIDGET (dialog));
 }
-
-void
-tgh_make_homogeneous (GtkWidget *first, ...)
-{
-  GtkWidget *iter;
-  GtkRequisition request;
-  gint max_width = 0;
-  gint max_height = 0;
-  va_list ap;
-
-  va_start (ap, first);
-  iter = first;
-  while (iter)
-  {
-    gtk_widget_size_request(iter, &request);
-    if (request.width > max_width)
-      max_width = request.width;
-    if (request.height > max_height)
-      max_height = request.height;
-    iter = va_arg (ap, GtkWidget *);
-  }
-  va_end (ap);
-
-  va_start (ap, first);
-  iter = first;
-  while (iter)
-  {
-    gtk_widget_set_size_request (iter, max_width, max_height);
-    iter = va_arg (ap, GtkWidget *);
-  }
-  va_end (ap);
-}
-
diff --git a/tvp-git-helper/tgh-dialog-common.h b/tvp-git-helper/tgh-dialog-common.h
index cff2423..f90f2bf 100644
--- a/tvp-git-helper/tgh-dialog-common.h
+++ b/tvp-git-helper/tgh-dialog-common.h
@@ -23,8 +23,6 @@ G_BEGIN_DECLS
 
 void tgh_dialog_start (GtkDialog*, gboolean);
 
-void tgh_make_homogeneous (GtkWidget *, ...) G_GNUC_NULL_TERMINATED;
-
 G_END_DECLS
 
 #endif /*__TGH_DIALOG_COMMON_H__*/
diff --git a/tvp-git-helper/tgh-stash-dialog.c b/tvp-git-helper/tgh-stash-dialog.c
index ada9c02..f05b791 100644
--- a/tvp-git-helper/tgh-stash-dialog.c
+++ b/tvp-git-helper/tgh-stash-dialog.c
@@ -253,8 +253,6 @@ tgh_stash_dialog_init (TghStashDialog *dialog)
   g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (cancel_clicked), dialog);
   gtk_widget_show (button);
 
-  tgh_make_homogeneous (dialog->save, dialog->apply, dialog->pop, dialog->drop, dialog->close, dialog->cancel, NULL);
-
   gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 400);
 }
 
diff --git a/tvp-svn-helper/tsh-properties-dialog.c b/tvp-svn-helper/tsh-properties-dialog.c
index e5d3c9c..4f905c6 100644
--- a/tvp-svn-helper/tsh-properties-dialog.c
+++ b/tvp-svn-helper/tsh-properties-dialog.c
@@ -33,7 +33,6 @@ static void selection_changed (GtkTreeView*, gpointer);
 static void cancel_clicked (GtkButton*, gpointer);
 static void set_clicked (GtkButton*, gpointer);
 static void delete_clicked (GtkButton*, gpointer);
-static void tsh_make_homogeneous (GtkWidget *, ...) G_GNUC_NULL_TERMINATED;
 
 struct _TshPropertiesDialog
 {
@@ -257,8 +256,6 @@ tsh_properties_dialog_init (TshPropertiesDialog *dialog)
 	g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (cancel_clicked), dialog);
 	gtk_widget_show (button);
 
-  tsh_make_homogeneous (dialog->set, dialog->delete, dialog->close, dialog->cancel, NULL);
-
 	gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 400);
 }
 
@@ -282,38 +279,6 @@ tsh_properties_dialog_new (const gchar *title, GtkWindow *parent, GtkDialogFlags
 	return GTK_WIDGET(dialog);
 }
 
-static void
-tsh_make_homogeneous (GtkWidget *first, ...)
-{
-  GtkWidget *iter;
-  GtkRequisition request;
-  gint max_width = 0;
-  gint max_height = 0;
-  va_list ap;
-
-  va_start (ap, first);
-  iter = first;
-  while (iter)
-  {
-    gtk_widget_size_request(iter, &request);
-    if (request.width > max_width)
-      max_width = request.width;
-    if (request.height > max_height)
-      max_height = request.height;
-    iter = va_arg (ap, GtkWidget *);
-  }
-  va_end (ap);
-
-  va_start (ap, first);
-  iter = first;
-  while (iter)
-  {
-    gtk_widget_set_size_request (iter, max_width, max_height);
-    iter = va_arg (ap, GtkWidget *);
-  }
-  va_end (ap);
-}
-
 void
 tsh_properties_dialog_add (TshPropertiesDialog *dialog, const char *name, const char *value)
 {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list