[Goodies-commits] r2874 - thunar-svn-plugin/trunk/tsp-svn-helper
Peter de Ridder
peter at xfce.org
Thu Jun 28 00:54:44 CEST 2007
Author: peter
Date: 2007-06-27 22:54:43 +0000 (Wed, 27 Jun 2007)
New Revision: 2874
Modified:
thunar-svn-plugin/trunk/tsp-svn-helper/tsh-notify-dialog.c
thunar-svn-plugin/trunk/tsp-svn-helper/tsh-notify-dialog.h
Log:
updated the moved file
Modified: thunar-svn-plugin/trunk/tsp-svn-helper/tsh-notify-dialog.c
===================================================================
--- thunar-svn-plugin/trunk/tsp-svn-helper/tsh-notify-dialog.c 2007-06-27 22:53:23 UTC (rev 2873)
+++ thunar-svn-plugin/trunk/tsp-svn-helper/tsh-notify-dialog.c 2007-06-27 22:54:43 UTC (rev 2874)
@@ -24,11 +24,11 @@
#include <thunar-vfs/thunar-vfs.h>
#include <gtk/gtk.h>
-#include "tsh-update-dialog.h"
+#include "tsh-notify-dialog.h"
static void cancel_clicked (GtkButton*, gpointer);
-struct _TshUpdateDialog
+struct _TshNotifyDialog
{
GtkDialog dialog;
@@ -37,15 +37,15 @@
GtkWidget *cancel;
};
-struct _TshUpdateDialogClass
+struct _TshNotifyDialogClass
{
GtkDialogClass dialog_class;
};
-G_DEFINE_TYPE (TshUpdateDialog, tsh_update_dialog, GTK_TYPE_DIALOG)
+G_DEFINE_TYPE (TshNotifyDialog, tsh_notify_dialog, GTK_TYPE_DIALOG)
static void
-tsh_update_dialog_class_init (TshUpdateDialogClass *klass)
+tsh_notify_dialog_class_init (TshNotifyDialogClass *klass)
{
}
@@ -57,7 +57,7 @@
};
static void
-tsh_update_dialog_init (TshUpdateDialog *dialog)
+tsh_notify_dialog_init (TshNotifyDialog *dialog)
{
GtkWidget *button;
GtkWidget *tree_view;
@@ -99,7 +99,7 @@
gtk_widget_show (tree_view);
gtk_widget_show (scroll_window);
- gtk_window_set_title (GTK_WINDOW (dialog), _("Update"));
+ gtk_window_set_title (GTK_WINDOW (dialog), _("Notification"));
dialog->close = button = gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
gtk_widget_hide (button);
@@ -113,9 +113,9 @@
}
GtkWidget*
-tsh_update_dialog_new (const gchar *title, GtkWindow *parent, GtkDialogFlags flags)
+tsh_notify_dialog_new (const gchar *title, GtkWindow *parent, GtkDialogFlags flags)
{
- TshUpdateDialog *dialog = g_object_new (TSH_TYPE_UPDATE_DIALOG, NULL);
+ TshNotifyDialog *dialog = g_object_new (TSH_TYPE_UPDATE_DIALOG, NULL);
if(title)
gtk_window_set_title (GTK_WINDOW(dialog), title);
@@ -136,7 +136,7 @@
}
void
-tsh_update_dialog_add (TshUpdateDialog *dialog, const char *action, const char *file, const char *mime_type)
+tsh_notify_dialog_add (TshNotifyDialog *dialog, const char *action, const char *file, const char *mime_type)
{
GtkTreeModel *model;
GtkTreeIter iter;
@@ -153,11 +153,12 @@
path = gtk_tree_model_get_path (model, &iter);
gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (dialog->tree_view), path, NULL, FALSE, 0, 0);
+
gtk_tree_path_free (path);
}
void
-tsh_update_dialog_done (TshUpdateDialog *dialog)
+tsh_notify_dialog_done (TshNotifyDialog *dialog)
{
gtk_widget_hide (dialog->cancel);
gtk_widget_show (dialog->close);
@@ -166,7 +167,7 @@
static void
cancel_clicked (GtkButton *button, gpointer user_data)
{
- TshUpdateDialog *dialog = TSH_UPDATE_DIALOG (user_data);
+ TshNotifyDialog *dialog = TSH_NOTIFY_DIALOG (user_data);
gtk_widget_hide (dialog->cancel);
gtk_widget_show (dialog->close);
Modified: thunar-svn-plugin/trunk/tsp-svn-helper/tsh-notify-dialog.h
===================================================================
--- thunar-svn-plugin/trunk/tsp-svn-helper/tsh-notify-dialog.h 2007-06-27 22:53:23 UTC (rev 2873)
+++ thunar-svn-plugin/trunk/tsp-svn-helper/tsh-notify-dialog.h 2007-06-27 22:54:43 UTC (rev 2874)
@@ -17,35 +17,35 @@
* Boston, MA 02111-1307, USA.
*/
-#ifndef __TSH_UPDATE_DIALOG_H__
-#define __TSH_UPDATE_DIALOG_H__
+#ifndef __TSH_NOTIFY_DIALOG_H__
+#define __TSH_NOTIFY_DIALOG_H__
#include <gtk/gtk.h>
G_BEGIN_DECLS;
-typedef struct _TshUpdateDialogClass TshUpdateDialogClass;
-typedef struct _TshUpdateDialog TshUpdateDialog;
+typedef struct _TshNotifyDialogClass TshNotifyDialogClass;
+typedef struct _TshNotifyDialog TshNotifyDialog;
-#define TSH_TYPE_UPDATE_DIALOG (tsh_update_dialog_get_type ())
-#define TSH_UPDATE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TSH_TYPE_UPDATE_DIALOG, TshUpdateDialog))
-#define TSH_UPDATE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TSH_TYPE_UPDATE_DIALOG, TshUpdateDialogClass))
+#define TSH_TYPE_UPDATE_DIALOG (tsh_notify_dialog_get_type ())
+#define TSH_NOTIFY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TSH_TYPE_UPDATE_DIALOG, TshNotifyDialog))
+#define TSH_NOTIFY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TSH_TYPE_UPDATE_DIALOG, TshNotifyDialogClass))
#define TSH_IS_UPDATE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TSH_TYPE_UPDATE_DIALOG))
#define TSH_IS_UPDATE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TSH_TYPE_UPDATE_DIALOG))
-#define TSH_UPDATE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TSH_TYPE_UPDATE_DIALOG, TshUpdateDialogClass))
+#define TSH_NOTIFY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TSH_TYPE_UPDATE_DIALOG, TshNotifyDialogClass))
-GType tsh_update_dialog_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
+GType tsh_notify_dialog_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
-GtkWidget* tsh_update_dialog_new (const gchar *title,
+GtkWidget* tsh_notify_dialog_new (const gchar *title,
GtkWindow *parent,
GtkDialogFlags flags) G_GNUC_MALLOC G_GNUC_INTERNAL;
-void tsh_update_dialog_add (TshUpdateDialog *dialog,
+void tsh_notify_dialog_add (TshNotifyDialog *dialog,
const char *action,
const char *path,
const char *mime_type);
-void tsh_update_dialog_done (TshUpdateDialog *dialog);
+void tsh_notify_dialog_done (TshNotifyDialog *dialog);
G_END_DECLS;
-#endif /* !__TSH_UPDATE_DIALOG_H__ */
+#endif /* !__TSH_NOTIFY_DIALOG_H__ */
More information about the Goodies-commits
mailing list