~ubuntu-branches/ubuntu/lucid/quick-lounge-applet/lucid

« back to all changes in this revision

Viewing changes to src/dlg-properties.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Rottmann
  • Date: 2004-12-16 13:06:08 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041216130608-i7tq2h21kzrdy4yl
Tags: 2.2.0-1
* New upstream release.
* Build-Depend on debhelper (>= 4.1.0), fixes linda error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
} DialogData;
109
109
 
110
110
 
 
111
static gboolean
 
112
change_max_size (gpointer user_data)
 
113
{
 
114
        DialogData *data = user_data;
 
115
 
 
116
        g_source_remove (data->timeout);
 
117
        data->timeout = 0;
 
118
 
 
119
        quick_lounge_set_max_size (data->quick_lounge, gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (data->p_maxsize_spinbutton)));
 
120
 
 
121
        return FALSE;
 
122
}
 
123
 
 
124
 
111
125
/* called when the main dialog is closed. */
112
126
static void
113
127
destroy_cb (GtkWidget  *widget, 
114
128
            DialogData *data)
115
129
{
 
130
        if (data->timeout != 0) 
 
131
                change_max_size (data);
 
132
 
116
133
        g_object_unref (data->gui);
117
134
        g_free (data);
118
135
}
661
678
}
662
679
 
663
680
 
664
 
static gboolean
665
 
change_max_size (gpointer user_data)
666
 
{
667
 
        DialogData *data = user_data;
668
 
 
669
 
        g_source_remove (data->timeout);
670
 
        data->timeout = 0;
671
 
 
672
 
        quick_lounge_set_max_size (data->quick_lounge, gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (data->p_maxsize_spinbutton)));
673
 
 
674
 
        return FALSE;
675
 
}
676
 
 
677
 
 
678
681
static void
679
682
max_size_value_changed_cb (GtkWidget  *widget,
680
683
                           DialogData *data)
802
805
                        if (! is_desktop_file (src_uri))
803
806
                                continue;
804
807
 
805
 
                        uri = g_strconcat (quick_lounge->location,
806
 
                                           "/",
807
 
                                           file_name_from_path (src_uri),
808
 
                                           NULL);
 
808
                        uri = g_build_filename (quick_lounge->location,
 
809
                                                file_name_from_path (src_uri),
 
810
                                                NULL);
809
811
                        
810
812
                        if (strcmp (src_uri, uri) == 0) {
811
813
                                button = get_button_from_uri (quick_box, uri);